/* =========================================================================
 * CUSTOM USER AUTHENTICATION STYLES
 * ========================================================================= */

/* =========================================================================
 * 1. AUTHENTICATION CONTAINER
 * ========================================================================= */
.custom-auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    background-color: #ff6701;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.auth-form-wrapper {
    background: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 450px;
    width: 100%;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================================
 * 2. FORM TITLE
 * ========================================================================= */
.auth-form-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 30px 0;
    text-align: center;
}

/* =========================================================================
 * 3. ALERT MESSAGES
 * ========================================================================= */
.auth-message {
    padding: 15px 20px;
    margin-bottom: 25px;
    border-radius: 6px;
    font-size: 14px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.auth-error {
    background-color: #fee;
    color: #c33;
    border-left: 4px solid #c33;
}

.auth-error p {
    margin: 0;
    line-height: 1.5;
}

.auth-success {
    background-color: #efe;
    color: #3c3;
    border-left: 4px solid #3c3;
}

.auth-success p {
    margin: 0;
}

.auth-success a {
    color: #3c3;
    text-decoration: none;
    font-weight: 600;
}

.auth-success a:hover {
    text-decoration: underline;
}

/* =========================================================================
 * 4. FORM GROUPS
 * ========================================================================= */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group-half {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus,
.form-group input[type="number"]:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #ff6701;
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
    background-color: #f9f9ff;
}

.form-group input::placeholder {
    color: #999;
}

.form-group .form-text {
    display: block;
    margin-top: 6px;
    color: #666;
    font-size: 12px;
}

/* =========================================================================
 * 5. CHECKBOX & RADIO STYLES
 * ========================================================================= */
.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    font-weight: 400;
    cursor: pointer;
    user-select: none;
}

.checkbox-group input[type="checkbox"],
.checkbox-group input[type="radio"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
    accent-color: #ff6701;
}

/* =========================================================================
 * 6. BUTTONS
 * ========================================================================= */
.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    text-align: center;
    family: inherit;
}

.btn-primary {
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    background-color: #ff6701 !important;
    border-color: #ff6701 !important;
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 102, 0, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-block {
    width: 100%;
    display: block;
}

/* =========================================================================
 * 7. FORM LINKS
 * ========================================================================= */
.auth-links {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.auth-links a {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.auth-links a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.forgot-password {
    display: inline-block;
}

/* =========================================================================
 * 8. FOOTER
 * ========================================================================= */
.auth-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}

.auth-footer p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.auth-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-footer a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* =========================================================================
 * 9. CUSTOM LOGIN & SIGNUP FORMS
 * ========================================================================= */
.custom-login-form,
.custom-signup-form {
    width: 100%;
}

/* =========================================================================
 * 10. RESPONSIVE DESIGN
 * ========================================================================= */
@media (max-width: 600px) {
    .auth-form-wrapper {
        padding: 30px 20px;
    }

    .auth-form-title {
        font-size: 24px;
        margin-bottom: 25px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-group-half {
        margin-bottom: 20px;
    }

    .btn {
        padding: 12px 15px;
        font-size: 15px;
    }
}

/* =========================================================================
 * 11. DARK MODE SUPPORT
 * ========================================================================= */
@media (prefers-color-scheme: dark) {
    .custom-auth-container {
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    }

    .auth-form-wrapper {
        background: #2d2d44;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    }

    .auth-form-title {
        color: #e0e0e0;
    }

    .form-group label {
        color: #d0d0d0;
    }

    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="password"],
    .form-group input[type="number"],
    .form-group textarea,
    .form-group select {
        background-color: #3d3d54;
        border-color: #555;
        color: #e0e0e0;
    }

    .form-group input[type="text"]:focus,
    .form-group input[type="email"]:focus,
    .form-group input[type="password"]:focus,
    .form-group input[type="number"]:focus,
    .form-group textarea:focus,
    .form-group select:focus {
        background-color: #4d4d64;
        border-color: #667eea;
    }

    .form-group input::placeholder {
        color: #aaa;
    }

    .auth-links,
    .auth-footer {
        border-top-color: #444;
    }

    .checkbox-group label {
        color: #d0d0d0;
    }

    .form-group .form-text {
        color: #aaa;
    }
}

/* =========================================================================
 * 12. ACCESSIBILITY
 * ========================================================================= */
@media (prefers-reduced-motion: reduce) {
    .auth-form-wrapper,
    .auth-message {
        animation: none;
    }

    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="password"],
    .btn {
        transition: none;
    }
}

/* =========================================================================
 * 13. PRINT STYLES
 * ========================================================================= */
@media print {
    .custom-auth-container {
        display: none;
    }
}