* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.sticky-warning {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    text-align: center;
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    padding-top: 80px;
}

.header {
    text-align: center;
    margin-bottom: 32px;
}

.header h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 24px;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.5px;
}

.tabs {
    display: flex;
    border-radius: 12px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.tab {
    flex: 1;
    padding: 12px 24px;
    border: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.tab.active {
    background: linear-gradient(135deg, #7b2ff7 0%, #9733ee 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(123, 47, 247, 0.5);
}

.tab:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

#login_form_div {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

#login_form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

#login_form > div {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #4a5568;
}

input[type="text"], 
input[type="password"] {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    border: 2px solid #e5e7eb;
    background: white;
    transition: all 0.3s ease;
    color: #1a202c;
}

input[type="text"]:focus, 
input[type="password"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

input[type="text"]::placeholder,
input[type="password"]::placeholder {
    color: #9ca3af;
}

.password-container {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #9ca3af;
    transition: all 0.3s ease;
}

.password-toggle:hover {
    color: #667eea;
}

.password-toggle svg {
    width: 20px;
    height: 20px;
}

.hidden {
    display: none;
}

.forgot-password {
    text-align: left;
    margin-top: 8px;
    margin-bottom: 8px;
}

.forgot-password a {
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    color: white;
    transition: all 0.3s ease;
}

.forgot-password a:hover {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
}

#submit-login {
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}



#submit-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

#submit-login:active {
    transform: translateY(0);
}

/* Change password button - same style as login button */
#submit-change-password {
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    width: 100%;
}

#submit-change-password:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

#submit-change-password:active {
    transform: translateY(0);
}

#submit-change-password:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.register-link {
    text-align: center;
    margin-top: 24px;
}

.register-link a {
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    color: #7356b1;
    background: rgba(147, 51, 234, 0.1);
    padding: 10px 20px;
    border-radius: 8px;
    display: inline-block;
    transition: all 0.3s ease;
    border: 1px solid rgba(147, 51, 234, 0.3);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.register-link a:hover {
    background: rgba(147, 51, 234, 0.2);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(147, 51, 234, 0.3);
}

.social-login {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    min-width: 80px;
    justify-content: center;
}

.social-btn svg {
    width: 20px;
    height: 20px;
}

.social-btn.vk {
    background: linear-gradient(135deg, #4c75a3 0%, #3d5f85 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(76, 117, 163, 0.3);
}

.social-btn.vk:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(76, 117, 163, 0.4);
}

.social-btn.github {
    background: linear-gradient(135deg, #24292e 0%, #1a1e22 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(36, 41, 46, 0.3);
}

.social-btn.github:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(36, 41, 46, 0.4);
}

.social-btn.google {
    background: white;
    color: #374151;
    border: 2px solid #e5e7eb;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.social-btn.google:hover {
    background: #f9fafb;
    border-color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

/* Validation styles */
.error-container {
    margin-top: 8px;
}

.error-message {
    color: #dc2626;
    font-size: 12px;
    margin-bottom: 4px;
    padding: 4px 8px;
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
}

.error-message:last-child {
    margin-bottom: 0;
}

input.error {
    border: 2px solid #dc2626;
    background-color: #fef2f2;
}


.login-fail-message {
    margin-top: 12px;
    padding: 12px;
    color: #b91c1c;
    font-size: 20px;
    font-weight: 600;
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    text-align: center;
}


input[type="text"]:focus, 
input[type="password"]:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
}
