/*
 * LinkVerse Authentication Pages Styles
 * Dedicated stylesheet for login and registration pages
 */

/* ========================================
   AUTHENTICATION LAYOUT
======================================== */

.auth-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
}

.auth-card {
    max-width: 28rem;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ========================================
   HEADER SECTION
======================================== */

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-title {
    font-size: 2rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 0.5rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.auth-subtitle {
    font-size: 0.875rem;
    color: #000000;
    font-weight: 600;
}

/* ========================================
   FORM ELEMENTS
======================================== */

.auth-form {
    margin-top: 2rem;
    color: #000000 !important;
}

#linkverse-register-form, 
#linkverse-login-form {
    color: #000000 !important;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #000000 !important;
    margin-bottom: 0.5rem;
}

.linkverse-register-form label, 
.linkverse-login-form label, 
#linkverse-register-form label, 
#linkverse-login-form label {
    cursor: pointer;
    user-select: none;
    color: #000000 !important;
    font-weight: 600 !important;
    text-shadow: none !important;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: #1f2937;
    background-color: #ffffff;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input::placeholder {
    color: #9ca3af;
}

.form-input:invalid {
    border-color: #ef4444;
}

.form-input:valid {
    border-color: #10b981;
}

/* ========================================
   CHECKBOX AND REMEMBER ME
======================================== */

.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.checkbox-input {
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
    accent-color: #3b82f6;
}

.checkbox-label {
    font-size: 0.875rem;
    color: #374151;
    font-weight: 500;
}

.forgot-password {
    font-size: 0.875rem;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.forgot-password:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* ========================================
   BUTTONS
======================================== */

.auth-button {
    width: 100%;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.auth-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.4);
}

.auth-button:active {
    transform: translateY(0);
}

.auth-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    background: #9ca3af;
}

.auth-button:disabled:hover {
    transform: none;
    box-shadow: none;
}

.auth-button-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1.25rem;
}

/* ========================================
   MESSAGE DISPLAY
======================================== */

.message-container {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid;
    display: flex;
    align-items: center;
}

.message-success {
    background-color: #f0fdf4;
    border-color: #bbf7d0;
    color: #000000;
}

.message-error {
    background-color: #fef2f2;
    border-color: #fecaca;
    color: #000000;
}

.message-icon {
    margin-right: 0.75rem;
    width: 1.25rem;
    height: 1.25rem;
}

.message-text {
    font-size: 0.875rem;
    font-weight: 500;
}

/* ========================================
   VALIDATION RULES (Registration)
======================================== */

.validation-rules {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border: 1px solid #93c5fd;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.validation-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 1rem;
}

.validation-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.validation-item {
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    color: #000000;
    font-weight: 600;
    list-style: disc;
    margin-left: 1rem;
}

/* ========================================
   AUTH LINKS
======================================== */

.auth-links {
    text-align: center;
    margin-top: 2rem;
}

.auth-links-text {
    font-size: 0.875rem;
    color: #000000;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.auth-links-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.auth-links-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* ========================================
   SUCCESS MESSAGES
======================================== */

.success-message {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #bbf7d0;
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.success-icon {
    width: 3rem;
    height: 3rem;
    background: #10b981;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.success-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: white;
}

.success-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #065f46;
    margin-bottom: 0.5rem;
}

.success-description {
    font-size: 0.875rem;
    color: #000000;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    font-weight: 500;
}

.success-button {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.success-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.4);
    color: white;
    text-decoration: none;
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */

@media (max-width: 640px) {
    .auth-container {
        padding: 1rem;
    }
    
    .auth-card {
        padding: 1.5rem;
        border-radius: 0.75rem;
    }
    
    .auth-title {
        font-size: 1.75rem;
    }
    
    .validation-rules {
        padding: 1rem;
    }
    
    .validation-item {
        font-size: 0.7rem;
    }
}

/* ========================================
   PASSWORD STRENGTH
======================================== */

#strength-text {
    color: #000000 !important;
    font-weight: 600 !important;
}

/* Password strength meter colors */
#strength-1, #strength-2, #strength-3, #strength-4, #strength-5 {
    transition: all 0.3s ease;
}

.bg-red-500 {
    background-color: #ef4444 !important;
}

.bg-orange-500 {
    background-color: #f97316 !important;
}

.bg-yellow-500 {
    background-color: #eab308 !important;
}

.bg-blue-500 {
    background-color: #3b82f6 !important;
}

.bg-green-500 {
    background-color: #10b981 !important;
}

/* ========================================
   ALREADY LOGGED IN MESSAGE
======================================== */

.linkverse-already-logged-in {
    color: #000000 !important;
}

.linkverse-already-logged-in p {
    color: #000000 !important;
}

/* ========================================
   ACCESSIBILITY
======================================== */

@media (prefers-reduced-motion: reduce) {
    .auth-button,
    .form-input,
    .forgot-password,
    .auth-links-link {
        transition: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .auth-card {
        background: white;
        border: 2px solid #000;
    }
    
    .form-input {
        border: 2px solid #000;
    }
    
    .auth-button {
        background: #000;
        color: white;
    }
}

/* Focus indicators for keyboard navigation */
.form-input:focus,
.auth-button:focus,
.forgot-password:focus,
.auth-links-link:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}
