/* ============================================
   AUTH FORMS STYLES - Login & Register
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #6d7486 0%, #0a0d13 100%);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Auth Container */
.auth-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
}

/* Auth Card */
.auth-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 2.5rem 2.5rem;
    animation: slideUp 0.4s ease-out;
    display: flex;
    flex-direction: column;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Auth Header */
.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.auth-header p {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* Form Styling */
form {
    width: 100%;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.form-group {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.4rem;
    display: block;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"] {
    padding: 12px 16px;
    font-size: 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus,
.form-group input[type="tel"]:focus {
    outline: none;
    border-color: #6d7486;
    background: white;
    box-shadow: 0 0 0 3px rgba(109, 116, 134, 0.1);
}

.form-group input::placeholder {
    color: #999;
}

/* Checkbox Styling */
.form-group.checkbox {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.5rem;
}

.form-group.checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: #6d7486;
}

.form-group.checkbox label {
    margin-bottom: 0;
    font-size: 13px;
    cursor: pointer;
    color: #555;
}

/* Error States */
.form-group input.error {
    border-color: #dc3545 !important;
    background-color: #fff5f5 !important;
}

.form-group input.error:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1) !important;
}

.error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 0.4rem;
    font-weight: 500;
}

/* Primary Button */
.btn-primary {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #6d7486 0%, #4a5260 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    box-shadow: 0 4px 15px rgba(109, 116, 134, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a6268 0%, #3d4350 100%);
    box-shadow: 0 6px 20px rgba(109, 116, 134, 0.4);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Auth Footer */
.auth-footer {
    margin-top: auto;
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.auth-footer p {
    font-size: 13px;
    color: #666;
    margin-bottom: 0.8rem;
}

.auth-footer a {
    color: #6d7486;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.auth-footer a:hover {
    color: #4a5260;
    text-decoration: underline;
}

/* Success & Error Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 14px 20px;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    z-index: 10000;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-weight: 500;
    max-width: 300px;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-success {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
}

.notification-error {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.notification-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    color: #333;
}

.notification-info {
    background: linear-gradient(135deg, #17a2b8 0%, #0c5460 100%);
}

/* Loading State */
.btn-primary.loading {
    position: relative;
    color: transparent;
}

.btn-primary.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 600px) {
    .auth-card {
        padding: 2rem 1.5rem;
        border-radius: 8px;
    }

    .auth-header h1 {
        font-size: 24px;
    }

    .auth-container {
        padding: 1rem;
    }

    .form-group {
        margin-bottom: 1.2rem;
    }

    .form-group input {
        padding: 11px 13px;
        font-size: 13px;
    }

    .btn-primary {
        padding: 11px 16px;
        font-size: 14px;
    }

    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

@media (max-width: 400px) {
    .auth-card {
        padding: 1.5rem 1rem;
    }

    .auth-header h1 {
        font-size: 22px;
    }

    .auth-header p {
        font-size: 13px;
    }

    .form-group label {
        font-size: 13px;
    }

    .form-group input {
        padding: 10px 12px;
        font-size: 13px;
    }

    .auth-footer p {
        font-size: 12px;
    }
}
