/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --success-color: #27ae60;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --light-bg: #ecf0f1;
    --border-radius: 8px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #efecec;
    background-color: #f5f6fa;
}

/* Login Page Specific Styles */
body.login-body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #e8eef7 0%, #d6dce9 50%, #c3cfe2 100%);
    padding: 20px;
}

.login-box {
    background: white;
    padding: 60px 50px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 10px 30px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 480px;
    backdrop-filter: blur(10px);
}

.login-title {
    text-align: center;
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 45px;
    color: #1a1a2e;
    letter-spacing: -1px;
}

.form-group {
    margin-bottom: 24px;
}

.form-input {
    width: 100%;
    padding: 16px 18px;
    border: 2px solid #e5e9f2;
    border-radius: 14px;
    font-size: 16px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f8f9fc;
    box-sizing: border-box;
}

.form-input::placeholder {
    color: #9ca3af;
    font-weight: 500;
}

.form-input:hover {
    border-color: #d1d8e8;
    background: #f5f7fc;
}

.form-input:focus {
    outline: none;
    border-color: #3498db;
    background: white;
    box-shadow: 0 0 0 5px rgba(52, 152, 219, 0.08);
}

.password-group {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 22px;
    opacity: 0.5;
    transition: opacity 0.3s ease, transform 0.3s ease;
    user-select: none;
}

.password-toggle:hover {
    opacity: 0.8;
    transform: translateY(-50%) scale(1.1);
}

.login-button {
    width: 100%;
    padding: 16px 20px;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 12px;
    letter-spacing: 0.5px;
}

.login-button:hover {
    background: linear-gradient(135deg, #1a1a1a 0%, #333333 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

.login-button:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.signup-text {
    text-align: center;
    color: #6b7280;
    margin-top: 28px;
    font-size: 15px;
    font-weight: 500;
}

.signup-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
}

.signup-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: #3498db;
    transition: width 0.3s ease;
}

.signup-link:hover {
    color: #2980b9;
}

.signup-link:hover::after {
    width: 100%;
}

.error-message {
    background: linear-gradient(135deg, #fee 0%, #fdd 100%);
    color: #c33;
    padding: 16px 18px;
    border-radius: 12px;
    margin-bottom: 24px;
    border-left: 5px solid #e74c3c;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.12);
}

.success-message {
    background: linear-gradient(135deg, #efe 0%, #dfd 100%);
    color: #3c3;
    padding: 16px 18px;
    border-radius: 12px;
    margin-bottom: 24px;
    border-left: 5px solid #27ae60;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.12);
}

.success-message a {
    color: #3c3;
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 640px) {
    .login-box {
        padding: 40px 24px;
    }
    
    .login-title {
        font-size: 32px;
        margin-bottom: 35px;
    }
    
    .form-group {
        margin-bottom: 18px;
    }
    
    .form-input {
        padding: 14px 16px;
        font-size: 16px;
        border-radius: 12px;
    }
    
    .login-button {
        padding: 14px 16px;
        font-size: 16px;
        margin-top: 10px;
    }
    
    .signup-text {
        font-size: 14px;
        margin-top: 24px;
    }
}
