/* =============================================================================
   FTB - Authentication Pages Styles
   Common styles for login and register pages
   ============================================================================= */

/* =============================================================================
   BACKGROUND GRID SYSTEM
   ============================================================================= */
.auth-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    opacity: 0.3;
    z-index: 1;
}

.bg-item {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* =============================================================================
   AUTH CONTAINER LAYOUTS
   ============================================================================= */
.auth-wrapper {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 2;
    padding: 2rem 1rem;
}

.auth-box {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    background: rgba(0, 0, 0, 0.3);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(15px);
    border: 2px solid rgba(251, 107, 0, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.9);
    width: 100%;
    max-width: 500px;
    margin: 2rem;
}

.register-box {
    max-width: 500px;
}

.login-box {
    max-width: 400px;
}

/* =============================================================================
   AUTH TYPOGRAPHY
   ============================================================================= */
.auth-box h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(255, 255, 255, 0.5),
        0 0 40px rgba(251, 107, 0, 0.3);
}

.auth-box p {
    font-weight: 700;
    color: #ffffff;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(255, 255, 255, 0.5),
        0 0 40px rgba(251, 107, 0, 0.3);
    margin-bottom: 2rem;
}

/* =============================================================================
   FORM LAYOUTS
   ============================================================================= */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.input-group {
    margin: 1.5rem 0;
    text-align: left;
}

.input-group label {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.input-group input {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 16px;
    font-weight: 500;
    box-sizing: border-box;
    -webkit-border-radius: 8px !important;
    -moz-border-radius: 8px !important;
}

.input-group input:focus {
    outline: 2px solid #FB6B00;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 8px !important;
    -webkit-border-radius: 8px !important;
    -moz-border-radius: 8px !important;
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.required {
    color: #FB6B00;
    margin-left: 0.2rem;
}

/* =============================================================================
   BUTTONS
   ============================================================================= */
.button-group {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-cancel {
    background: transparent;
    color: white !important;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.btn-cancel:hover,
a.btn-cancel:hover,
.btn.btn-cancel:hover,
a.btn.btn-cancel:hover,
.btn-cancel:focus,
a.btn-cancel:focus,
.btn.btn-cancel:focus,
a.btn.btn-cancel:focus,
.btn-cancel:active,
a.btn-cancel:active,
.btn.btn-cancel:active,
a.btn.btn-cancel:active {
    border-color: #FB6B00 !important;
    color: white !important;
    text-decoration: none !important;
    background: #FB6B00 !important;
}

/* Primary button overrides */
.btn-primary,
button.btn-primary,
button[type="submit"].btn-primary,
.btn.btn-primary {
    background: #FB6B00 !important;
    color: white !important;
    border: 2px solid #FB6B00 !important;
    transition: all 0.3s ease !important;
}

.btn-primary:hover,
button.btn-primary:hover,
button[type="submit"].btn-primary:hover,
.btn.btn-primary:hover,
.btn-primary:focus,
button.btn-primary:focus,
button[type="submit"].btn-primary:focus,
.btn.btn-primary:focus,
.btn-primary:active,
button.btn-primary:active,
button[type="submit"].btn-primary:active,
.btn.btn-primary:active {
    background: #e5600a !important;
    border-color: #e5600a !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(251, 107, 0, 0.4) !important;
    text-decoration: none !important;
}

/* =============================================================================
   ALERTS
   ============================================================================= */
.alert {
    margin: 1rem 0;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
}

.alert-error {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: white;
}

.alert-success {
    background: rgba(25, 135, 84, 0.2);
    border: 1px solid rgba(25, 135, 84, 0.3);
    color: white;
}

.alert-info {
    background: rgba(13, 202, 240, 0.2);
    border: 1px solid rgba(13, 202, 240, 0.3);
    color: white;
}

/* =============================================================================
   FORM VALIDATION
   ============================================================================= */
.form-error {
    color: #ff6b6b;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.form-help {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* =============================================================================
   BOTTOM LINKS
   ============================================================================= */
.bottom-link {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.bottom-link p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.bottom-link a {
    color: #FB6B00;
    text-decoration: none;
    font-weight: 600;
}

.bottom-link a:hover {
    color: white;
}

/* =============================================================================
   RESPONSIVE DESIGN
   ============================================================================= */
@media (max-width: 768px) {
    .auth-box {
        padding: 1.5rem;
        margin: 1rem;
    }

    .auth-box h1 {
        font-size: 2.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .button-group {
        flex-direction: column;
    }
}