* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #0a0a0a;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f8fafc;
    padding: 1rem;
    position: relative;
    overflow-x: hidden;
}

.background-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: 
        radial-gradient(ellipse at top left, rgba(239, 68, 68, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at top right, rgba(59, 130, 246, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at bottom left, rgba(16, 185, 129, 0.04) 0%, transparent 50%);
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        linear-gradient(45deg, transparent 30%, rgba(239, 68, 68, 0.03) 31%, rgba(239, 68, 68, 0.03) 32%, transparent 33%),
        linear-gradient(-45deg, transparent 30%, rgba(59, 130, 246, 0.02) 31%, rgba(59, 130, 246, 0.02) 32%, transparent 33%);
    background-size: 60px 60px;
    animation: subtleMove 20s ease-in-out infinite alternate;
}

@keyframes subtleMove {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-2px, -2px) rotate(0.5deg); }
}

.auth-wrapper {
    display: flex;
    gap: 2rem;
    width: 100%;
    max-width: 1000px;
    align-items: flex-start;
}

.auth-container {
    background: rgba(15, 15, 15, 0.92);
    backdrop-filter: blur(24px) saturate(1.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2.5rem;
    width: 100%;
    max-width: 440px;
    box-shadow: 
        0 32px 64px rgba(0, 0, 0, 0.32),
        0 16px 32px rgba(0, 0, 0, 0.24),
        0 4px 8px rgba(0, 0, 0, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    position: relative;
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}

.auth-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(239, 68, 68, 0.4) 20%, 
        rgba(239, 68, 68, 0.6) 50%, 
        rgba(239, 68, 68, 0.4) 80%, 
        transparent 100%
    );
    border-radius: 20px 20px 0 0;
}

.auth-container:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 40px 80px rgba(0, 0, 0, 0.36),
        0 20px 40px rgba(0, 0, 0, 0.28),
        0 8px 16px rgba(0, 0, 0, 0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.connect-container {
    background: rgba(15, 15, 15, 0.8);
    backdrop-filter: blur(24px) saturate(1.2);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 2rem;
    width: 100%;
    max-width: 360px;
    box-shadow: 
        0 24px 48px rgba(0, 0, 0, 0.24),
        0 12px 24px rgba(0, 0, 0, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    position: relative;
    animation: connectSlideIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

@keyframes connectSlideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.connect-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.connect-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
}

.connect-subtitle {
    color: #94a3b8;
    font-size: 0.875rem;
    line-height: 1.4;
}

.connect-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.connect-option {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    text-decoration: none;
    color: #e2e8f0;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.connect-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: left 0.6s;
}

.connect-option:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.connect-option:hover::before {
    left: 100%;
}

.connect-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.connect-icon.telegram {
    background: linear-gradient(135deg, #0088cc, #005fa3);
    color: white;
}

.connect-icon.email {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.connect-icon.nodes {
    background: linear-gradient(135deg, #000000, #000000);
    color: white;
}

.connect-content {
    flex: 1;
}

.connect-name {
    font-weight: 500;
    color: #ffffff;
    font-size: 0.9rem;
    margin-bottom: 0.125rem;
}

.connect-description {
    color: #94a3b8;
    font-size: 0.8rem;
    line-height: 1.3;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.auth-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 
        0 8px 32px rgba(239, 68, 68, 0.25),
        0 4px 16px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: logoEntrance 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
    overflow: hidden;
}

.auth-logo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('/images/patriot-logo.png') center/cover no-repeat;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    border-radius: 50%;
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .auth-logo::after {
        background-image: url('/images/patriot-logo@2x.png'), url('/images/patriot-logo.png');
    }
}

@media (-webkit-min-device-pixel-ratio: 3), (min-resolution: 288dpi) {
    .auth-logo::after {
        background-image: url('/images/patriot-logo@3x.png'), url('/images/patriot-logo@2x.png'), url('/images/patriot-logo.png');
    }
}

.auth-logo-icon {
    font-size: 2rem;
    color: white;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    user-select: none;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.auth-logo.image-loaded .auth-logo-icon {
    opacity: 0;
}

.auth-logo.image-loaded::after {
    opacity: 1;
}

@keyframes logoEntrance {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.8) rotate(-10deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0deg);
    }
}

.auth-logo::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #ef4444, #dc2626, #b91c1c);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.auth-logo:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 
        0 12px 40px rgba(239, 68, 68, 0.35),
        0 6px 20px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.auth-logo:hover::before {
    opacity: 0.3;
}

.auth-logo:hover::after {
    transform: scale(1.05);
}

.auth-logo-text {
    position: absolute;
    bottom: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: rgba(15, 15, 15, 0.9);
    border: 2px solid #ef4444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: #ef4444;
    backdrop-filter: blur(8px);
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.375rem;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.auth-subtitle {
    color: #94a3b8;
    font-size: 0.925rem;
    font-weight: 400;
    line-height: 1.4;
}

.form-group {
    margin-bottom: 1.25rem;
    position: relative;
}

.form-group:last-of-type {
    margin-bottom: 1.75rem;
}

.form-label {
    display: block;
    margin-bottom: 0.375rem;
    font-weight: 500;
    color: #e2e8f0;
    font-size: 0.875rem;
    letter-spacing: 0.01em;
    transition: color 0.2s ease;
}

.form-group.focused .form-label {
    color: #ef4444;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(30, 30, 30, 0.6);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: #ffffff;
    font-size: 0.95rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    backdrop-filter: blur(8px);
}

.form-input:focus {
    border-color: #ef4444;
    background: rgba(30, 30, 30, 0.8);
    box-shadow: 
        0 0 0 3px rgba(239, 68, 68, 0.12),
        0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.form-input:valid:not(:focus) {
    border-color: rgba(16, 185, 129, 0.4);
}

.form-input::placeholder {
    color: #64748b;
    font-weight: 400;
}

.form-input:hover:not(:focus) {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(30, 30, 30, 0.7);
}

.form-group.focused .form-input {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08);
}

.form-input.valid {
    border-color: rgba(16, 185, 129, 0.6);
}

.form-input.invalid {
    border-color: rgba(239, 68, 68, 0.6);
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
    20%, 40%, 60%, 80% { transform: translateX(4px); }
}

.optional-field {
    position: relative;
}

.optional-badge {
    position: absolute;
    right: 1rem;
    top: -0.125rem;
    background: rgba(100, 116, 139, 0.2);
    color: #94a3b8;
    font-size: 0.6875rem;
    padding: 0.125rem 0.375rem;
    border-radius: 6px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    backdrop-filter: blur(4px);
}

.auth-button {
    width: 100%;
    padding: 0.875rem 1rem;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 12px rgba(239, 68, 68, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.auth-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s;
}

.auth-button:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-1px);
    box-shadow: 
        0 8px 20px rgba(239, 68, 68, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.auth-button:hover::before {
    left: 100%;
}

.auth-button:active {
    transform: translateY(0);
    box-shadow: 
        0 2px 8px rgba(239, 68, 68, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.auth-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    background: rgba(100, 116, 139, 0.3);
    position: relative;
    overflow: hidden;
}

.auth-button:disabled:hover {
    transform: none;
    box-shadow: none;
    background: rgba(100, 116, 139, 0.3);
}

.auth-button:disabled::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: buttonSpin 0.8s linear infinite;
}

@keyframes buttonSpin {
    to { transform: rotate(360deg); }
}

.error-message {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #fca5a5;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(8px);
    animation: errorAppear 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes errorAppear {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.error-message span {
    font-size: 1rem;
    filter: drop-shadow(0 0 4px rgba(239, 68, 68, 0.5));
}

.validation-error {
    margin-bottom: 1.5rem;
    border-left: 4px solid #ef4444;
    animation: errorSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes errorSlideIn {
    from {
        opacity: 0;
        transform: translateY(-12px) scale(0.96);
        max-height: 0;
        padding: 0 1rem;
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        max-height: 100px;
        padding: 0.75rem 1rem;
    }
}

.divider {
    margin: 1.75rem 0;
    text-align: center;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.1) 25%, 
        rgba(255, 255, 255, 0.15) 50%, 
        rgba(255, 255, 255, 0.1) 75%, 
        transparent 100%
    );
}

.divider span {
    background: rgba(15, 15, 15, 0.95);
    padding: 0 1rem;
    color: #64748b;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.025em;
}

.auth-link {
    text-align: center;
}

.auth-link p {
    color: #94a3b8;
    font-size: 0.875rem;
    margin: 0;
}

.auth-link a {
    color: #ef4444;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
}

.auth-link a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #ef4444;
    transition: width 0.3s ease;
}

.auth-link a:hover {
    color: #dc2626;
}

.auth-link a:hover::after {
    width: 100%;
}

.password-strength {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #94a3b8;
}

.strength-bar {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    margin-top: 0.375rem;
    overflow: hidden;
    backdrop-filter: blur(4px);
}

.strength-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, 
        #ef4444 0%, 
        #f59e0b 35%, 
        #10b981 70%,
        #059669 100%
    );
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
}

.strength-fill.very-weak {
    background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.4);
}

.strength-fill.weak {
    background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 0 6px rgba(245, 158, 11, 0.4);
}

.strength-fill.fair {
    background: linear-gradient(90deg, #eab308 0%, #ca8a04 100%);
    box-shadow: 0 0 6px rgba(234, 179, 8, 0.4);
}

.strength-fill.good {
    background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.4);
}

.strength-fill.excellent {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.auth-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(239, 68, 68, 0.2) 50%, 
        transparent 100%
    );
    transform: translateX(-50%);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 900px) {
    .auth-wrapper {
        max-width: 500px;
        gap: 1.5rem;
    }
    
    .auth-container {
        width: 100%;
        max-width: 420px;
    }
    
    .connect-container {
        width: 100%;
        max-width: 420px;
    }
}

@media (max-width: 768px) {
    .auth-wrapper {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
        max-width: 420px;
    }
    
    .auth-container {
        width: 100%;
    }
    
    .connect-container {
        width: 100%;
        animation: connectSlideIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
    }
    
    .connect-options {
        gap: 0.625rem;
    }
    
    .connect-option {
        padding: 0.75rem 0.875rem;
    }
    
    .connect-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 0.75rem;
    }
    
    .auth-wrapper {
        gap: 1rem;
        max-width: none;
    }
    
    .auth-container {
        padding: 2rem;
        border-radius: 16px;
        width: 100%;
    }
    
    .connect-container {
        padding: 1.5rem;
        border-radius: 16px;
        width: 100%;
    }
    
    .auth-logo {
        width: 70px;
        height: 70px;
        margin-bottom: 1.25rem;
    }
    
    .auth-logo-icon {
        font-size: 1.75rem;
    }
    
    .auth-logo-text {
        width: 20px;
        height: 20px;
        font-size: 0.6rem;
        bottom: -6px;
        right: -6px;
    }
    
    .auth-title {
        font-size: 1.5rem;
    }
    
    .auth-subtitle {
        font-size: 0.875rem;
    }
    
    .connect-title {
        font-size: 1.25rem;
    }
    
    .form-input {
        padding: 0.75rem 0.875rem;
        font-size: 0.9rem;
    }
    
    .auth-button {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 360px) {
    .auth-container {
        padding: 1.5rem;
        width: 100%;
    }
    
    .connect-container {
        padding: 1.25rem;
        width: 100%;
    }
    
    .auth-logo {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .auth-logo-icon {
        font-size: 1.5rem;
    }
    
    .auth-logo-text {
        width: 18px;
        height: 18px;
        font-size: 0.55rem;
        bottom: -4px;
        right: -4px;
    }
    
    .auth-title {
        font-size: 1.375rem;
    }
    
    .connect-title {
        font-size: 1.125rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .connect-option {
        padding: 0.625rem 0.75rem;
        gap: 0.75rem;
    }
    
    .connect-icon {
        width: 28px;
        height: 28px;
        font-size: 0.875rem;
    }
    
    .connect-name {
        font-size: 0.825rem;
    }
    
    .connect-description {
        font-size: 0.75rem;
    }
}

.form-input:focus-visible,
.auth-button:focus-visible {
    outline: 2px solid #ef4444;
    outline-offset: 2px;
}

@media (prefers-contrast: high) {
    .auth-container {
        border: 2px solid #ffffff;
        background: #000000;
    }
    
    .form-input {
        border: 2px solid #ffffff;
        background: #000000;
    }
    
    .form-input:focus {
        border-color: #ffffff;
        box-shadow: 0 0 0 3px #ffffff;
    }
}

@media print {
    .auth-container {
        box-shadow: none;
        border: 1px solid #000;
        background: #fff;
        color: #000;
    }
    
    .background-pattern,
    body::before {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-container,
    .form-input,
    .auth-button,
    .auth-link a,
    .strength-fill,
    .error-message,
    .auth-logo,
    .connect-container {
        transition: none;
        animation: none;
    }
    
    body::before {
        animation: none;
    }
    
    .auth-button::before {
        display: none;
    }
    
    .form-input.invalid {
        animation: none;
    }
    
    .auth-logo {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    .connect-container {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

.remember-me-group {
    margin: 1rem 0 1.5rem 0;
}

.remember-me-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    font-size: 0.875rem;
    color: #cbd5e1;
    gap: 0.75rem;
}

.remember-me-checkbox {
    opacity: 0;
    position: absolute;
    width: 0;
    height: 0;
}

.checkmark {
    width: 18px;
    height: 18px;
    background: rgba(30, 30, 30, 0.8);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    position: relative;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.checkmark::after {
    content: '';
    position: absolute;
    opacity: 0;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid #ef4444;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0.8);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.remember-me-checkbox:checked + .checkmark {
    background: rgba(239, 68, 68, 0.15);
    border-color: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.1);
}

.remember-me-checkbox:checked + .checkmark::after {
    opacity: 1;
    transform: rotate(45deg) scale(1);
}

.remember-me-label:hover .checkmark {
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(30, 30, 30, 0.9);
}

.remember-me-checkbox:focus + .checkmark {
    outline: 2px solid rgba(239, 68, 68, 0.3);
    outline-offset: 2px;
}

.remember-me-text {
    transition: color 0.2s ease;
}

.remember-me-label:hover .remember-me-text {
    color: #e2e8f0;
}

.checkbox-wrapper {
    margin: 0.5rem 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    user-select: none;
    font-size: 0.875rem;
    color: #cbd5e1;
    gap: 0.75rem;
    line-height: 1.4;
}

.checkbox-input {
    opacity: 0;
    position: absolute;
    width: 0;
    height: 0;
}

.checkmark {
    width: 18px;
    height: 18px;
    background: rgba(30, 30, 30, 0.8);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    position: relative;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    margin-top: 1px;
}

.checkmark::after {
    content: '';
    position: absolute;
    opacity: 0;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid #ef4444;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0.8);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.checkbox-input:checked + .checkbox-label .checkmark {
    background: rgba(239, 68, 68, 0.15);
    border-color: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.1);
}

.checkbox-input:checked + .checkbox-label .checkmark::after {
    opacity: 1;
    transform: rotate(45deg) scale(1);
}

.checkbox-label:hover .checkmark {
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(30, 30, 30, 0.9);
}

.checkbox-input:focus + .checkbox-label .checkmark {
    outline: 2px solid rgba(239, 68, 68, 0.3);
    outline-offset: 2px;
}

.checkbox-text {
    transition: color 0.2s ease;
}

.checkbox-label:hover .checkbox-text {
    color: #e2e8f0;
}

.checkbox-text a {
    color: #ef4444;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.checkbox-text a:hover {
    color: #dc2626;
    text-decoration: underline;
}

/* Social Login Section */
.social-login-section {
    margin-bottom: 1.5rem;
}

.social-login-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.social-login-option {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #5865f2, #4752c4);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    cursor: pointer;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.social-login-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.social-login-option:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.3);
}

.social-login-option:hover::before {
    left: 100%;
}

.social-login-option:active {
    transform: translateY(0);
}

.social-login-icon {
    font-size: 1.25rem;
}

.social-login-name {
    font-weight: 600;
}

/* Captcha Modal */
.captcha-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
}

.captcha-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.captcha-modal-content {
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(24px) saturate(1.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2rem;
    width: 90%;
    max-width: 480px;
    box-shadow: 
        0 32px 64px rgba(0, 0, 0, 0.4),
        0 16px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.captcha-modal.show .captcha-modal-content {
    transform: scale(1) translateY(0);
}

.captcha-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.captcha-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-radius: 50%;
    margin: 0 auto 1rem;
    box-shadow: 0 8px 32px rgba(239, 68, 68, 0.3);
}

.captcha-icon i {
    font-size: 1.5rem;
    color: white;
}

.captcha-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
}

.captcha-subtitle {
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.4;
}

.captcha-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(30, 30, 30, 0.5);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.captcha-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.captcha-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.captcha-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.captcha-btn:hover::before {
    left: 100%;
}

.captcha-btn-secondary {
    background: rgba(100, 116, 139, 0.2);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.captcha-btn-secondary:hover {
    background: rgba(100, 116, 139, 0.3);
    transform: translateY(-1px);
}

.captcha-btn-primary {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.captcha-btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.35);
}

.captcha-btn-primary:disabled {
    background: rgba(100, 116, 139, 0.3);
    color: rgba(255, 255, 255, 0.4);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.captcha-btn:active:not(:disabled) {
    transform: translateY(0);
}

@media (max-width: 480px) {
    .captcha-modal-content {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .captcha-buttons {
        flex-direction: column;
    }
    
    .captcha-btn {
        width: 100%;
    }
}