/* ========================================= */
/* PISTON TRIBE MODAL STYLES                 */
/* Used on: Forum, Account, Public Profiles  */
/* ========================================= */

.pt-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8); /* Darker overlay for focus */
    z-index: 999999 !important;
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    backdrop-filter: blur(4px); /* Stronger blur for modern look */
}

/* Active State - Show the modal */
.pt-modal-overlay.active {
    display: flex !important;
    opacity: 1;
    pointer-events: all;
}

.pt-modal-box {
    background: #fff;
    width: 90%;
    max-width: 480px; /* Slightly wider */
    padding: 60px 40px;
    border-radius: 0px; /* SHARP CORNERS (Matches Login Page) */
    position: relative;
    transform: translateY(30px);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
    text-align: center;
    border: 1px solid #e0e0e0;
}

.pt-modal-overlay.active .pt-modal-box {
    transform: translateY(0);
}

.pt-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #000;
    line-height: 1;
    z-index: 10;
}


/* Typography */
.pt-modal-title {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 15px 0;
    color: #000;
    text-transform: uppercase; /* Match Login Header */
    line-height: 1.1;
    letter-spacing: 0.5px;
}

.pt-modal-desc {
    color: #555;
    font-size: 1rem;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* --------------------------------------------------------- */
/* 🔒 SCOPED FORM ELEMENTS (Only affect items inside Modal)  */
/* --------------------------------------------------------- */

.pt-modal-box .pt-field-group { 
    margin-bottom: 25px; 
    text-align: left; 
}

.pt-modal-box .pt-label { 
    display: block; 
    font-weight: 700; 
    text-transform: uppercase; 
    font-size: 0.85rem; 
    margin-bottom: 8px; 
    color: #000;
    letter-spacing: 0.5px;
}

/* Inputs matching Login Page */
.pt-modal-box .pt-input,
.pt-modal-box textarea { 
    width: 100%; 
    padding: 15px; 
    border: 1px solid #e5e5e5; 
    background: #fff;
    font-size: 1rem; 
    font-weight: 400; 
    box-sizing: border-box; 
    border-radius: 0px; /* Sharp */
    color: #333;
    outline: none;
    transition: border-color 0.2s;
}

.pt-modal-box .pt-input:focus,
.pt-modal-box textarea:focus {
    border-color: #000;
}

/* Buttons matching Login Page */
.pt-modal-box .pt-button.pt-red,
.pt-modal-actions .pt-login-button { 
    background: #000; /* Black for Login/Register contrast */
    width: 100%; 
    text-align: center; 
    color: #fff; 
    padding: 18px 20px; 
    border: none; 
    font-weight: 800; 
    text-transform: uppercase; 
    cursor: pointer; 
    border-radius: 0px; /* Sharp */
    display: block;
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 1px;
    margin-bottom: 15px; /* Gap between buttons */
    transition: background 0.3s;
}

.pt-modal-box .pt-button.pt-red:hover,
.pt-modal-actions .pt-login-button:hover {
    background: #333;
}

/* Secondary Button (Create Account) */
.pt-modal-actions .pt-login-button.pt-modal-btn-secondary {
    background: #fff;
    color: #000;
    border: 2px solid #000;
}

.pt-modal-actions .pt-login-button.pt-modal-btn-secondary:hover {
    background: #000;
    color: #fff;
}

.pt-signup-row {
    margin-top: 30px;
    font-size: 0.9rem;
    color: #666;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
.pt-signup-row a {
    color: #000;
    font-weight: 700;
    text-decoration: underline;
}