/* ===========================================
   AIVEK Auth Pages - Minimal Black & White Theme
   =========================================== */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    background: #000000 !important;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    color: #ffffff;
    overflow-x: hidden;
}

/* Animated Background */
.auth-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
    opacity: 0.3;
}

.floating-cube {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    animation: floatUp 20s infinite linear;
    border-radius: 8px;
}

.floating-cube:nth-child(1) { left: 5%; width: 50px; height: 50px; animation-delay: 0s; animation-duration: 25s; }
.floating-cube:nth-child(2) { left: 15%; width: 70px; height: 70px; animation-delay: -5s; animation-duration: 30s; }
.floating-cube:nth-child(3) { left: 35%; width: 40px; height: 40px; animation-delay: -10s; animation-duration: 22s; }
.floating-cube:nth-child(4) { left: 55%; width: 80px; height: 80px; animation-delay: -15s; animation-duration: 28s; }
.floating-cube:nth-child(5) { left: 75%; width: 55px; height: 55px; animation-delay: -8s; animation-duration: 35s; }
.floating-cube:nth-child(6) { left: 90%; width: 45px; height: 45px; animation-delay: -12s; animation-duration: 24s; }

@keyframes floatUp {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.5; }
    90% { opacity: 0.5; }
    100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

/* Auth Container */
.auth-container {
    max-width: 480px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* Auth Logo */
.auth-logo {
    display: block;
    text-align: center;
    text-decoration: none;
    margin-bottom: 32px;
}

.auth-logo .logo-text {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 3px;
    text-transform: uppercase;
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    -webkit-text-fill-color: #ffffff;
}

/* Auth Card */
.auth-card {
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 48px 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}

.auth-card::before {
    display: none;
}

/* Auth Title */
.auth-title {
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
    color: #ffffff;
}

.auth-subtitle {
    text-align: center;
    color: #a0a0a0;
    margin-bottom: 32px;
    font-size: 0.95rem;
}

/* Form Groups */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #e0e0e0;
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #000000;
    color: #ffffff;
}

.form-input:focus {
    outline: none;
    border-color: #ffffff;
    background: #000000;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 1);
}

.form-input::placeholder {
    color: #666;
}

/* Password Toggle */
.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #a0a0a0;
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
}

.toggle-password:hover {
    color: #ffffff;
}

/* Auth Button */
.auth-btn {
    display: flex;
    align-items: center; 
    justify-content: center;
    width: 100%;
    padding: 16px;
    background: #ffffff;
    color: #000000;
    border: none;
    border-radius: 50px; /* PILL */
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    gap: 10px;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
    background: #f0f0f0;
}

.auth-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Secondary Button */
.auth-btn-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.auth-btn-secondary:hover {
    border-color: #ffffff;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

/* Auth Divider */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: #666;
    font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.auth-divider span {
    padding: 0 16px;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

/* Messages */
.alert-message {
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: none;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
}

.alert-error {
    background: rgba(255, 0, 0, 0.1);
    color: #ff6b6b;
    border: 1px solid rgba(255, 0, 0, 0.3);
}

.alert-success {
    background: rgba(0, 255, 0, 0.1);
    color: #6bff95;
    border: 1px solid rgba(0, 255, 0, 0.3);
}

.alert-info {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Checkbox */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    padding-left: 28px;
    color: #a0a0a0;
    user-select: none;
    font-size: 0.9rem;
}

.checkbox-wrapper input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 18px;
    width: 18px;
    background-color: #000;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    transition: all 0.2s;
}

.checkbox-wrapper:hover input ~ .checkmark {
    border-color: #fff;
}

.checkbox-wrapper input:checked ~ .checkmark {
    background-color: #fff;
    border-color: #fff;
}

.checkmark:after {
    content: '';
    position: absolute;
    display: none;
}

.checkbox-wrapper input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-wrapper .checkmark:after {
    left: 6px;
    top: 2px;
    width: 4px;
    height: 9px;
    border: solid black;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Links */
.auth-links {
    margin-top: 24px;
    text-align: center;
}

.auth-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s;
}

.auth-link:hover {
    opacity: 0.8;
}

.forgot-link {
    color: #a0a0a0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.forgot-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 0.9rem;
}

/* Verification Code Input */
.verification-inputs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 32px 0;
}

.verification-digit {
    width: 52px;
    height: 60px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: #000000;
    color: #ffffff;
    transition: all 0.3s;
}

.verification-digit:focus {
    outline: none;
    border-color: #ffffff;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 1);
}

.verification-digit.shake {
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

/* Verification Icon */
.verification-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.verification-icon i {
    font-size: 36px;
    color: #ffffff;
    background: none;
    -webkit-text-fill-color: initial;
}

.verification-email {
    color: #ffffff;
}

/* Resend Section */
.resend-section {
    margin-top: 24px;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

.resend-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s;
}

.resend-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
}

.resend-btn:disabled {
    color: #666;
    cursor: not-allowed;
}

.resend-timer {
    color: #a0a0a0;
    font-size: 0.85rem;
    margin-left: 8px;
}

/* Password Strength */
.password-strength {
    margin-top: 10px;
}

.strength-bar {
    height: 4px;
    background: #333;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 4px;
}

.strength-fill {
    height: 100%;
    width: 0;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.strength-fill.weak { width: 25%; background: #ef4444; }
.strength-fill.fair { width: 50%; background: #f59e0b; }
.strength-fill.good { width: 75%; background: #d0d0d0; }
.strength-fill.strong { width: 100%; background: #ffffff; }

.strength-text {
    font-size: 0.8rem;
    color: #a0a0a0;
    text-align: right;
}

.error-message {
    color: #ff6b6b;
    font-size: 0.8rem;
    margin-top: 6px;
    display: none;
}

/* Social Login */
.social-login {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: #000000;
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s;
}

.social-btn:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

/* Footer */
.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: #666;
}

.auth-footer .footer-logo {
    display: block;
    height: 53px;
    width: auto;
    margin: 0 auto 14px;
    opacity: 0.95;
}

.auth-footer a {
    color: #ffffff;
    text-decoration: none;
}

/* Extra Links */
.auth-extra-links {
    margin-top: 32px;
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.auth-extra-links a {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.auth-extra-links a:hover {
    color: #ffffff;
}

/* Responsive */
@media (max-width: 520px) {
    .auth-container {
        padding: 40px 16px;
    }
    
    .auth-card {
        padding: 32px 24px;
        border-radius: 20px;
    }
    
    .verification-digit {
        width: 44px;
        height: 52px;
        font-size: 1.25rem;
    }
    
    .verification-inputs {
        gap: 8px;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}
