/* Login Page - Proton Mail Exact Match */
.login-page {
    background: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.login-header {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 16px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.header-logo .logo-img {
    height: 32px;
    width: auto;
}

.language-button {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.2s;
}

.language-button:hover {
    background: #f8f9fa;
}

/* Main Content */
.login-main {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 60px 0;
}

.login-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

/* Left Side: Form */
.login-left {
    display: flex;
    justify-content: center;
}

.login-form-container {
    width: 100%;
    max-width: 400px;
}

.login-form {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-title {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.form-subtitle {
    font-size: 16px;
    color: #64748b;
    margin-bottom: 32px;
    font-weight: 400;
}

.login-form .form-group {
    margin-bottom: 24px;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
    color: #1e293b;
}

.login-form input[type="text"],
.login-form input[type="email"],
.login-form input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
    background: white;
    color: #1e293b;
}

.login-form input:focus {
    outline: none;
    border-color: #6D4AFF;
    box-shadow: 0 0 0 3px rgba(109, 74, 255, 0.1);
}

.password-input-group {
    position: relative;
}

.password-input-group input {
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: color 0.2s;
}

.password-toggle:hover {
    color: #1e293b;
}

.login-form .btn {
    margin-top: 8px;
    width: 100%;
}

.form-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
    text-align: center;
}

.form-link {
    color: #6D4AFF;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: opacity 0.2s;
}

.form-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.form-link-button {
    background: none;
    border: none;
    color: #6D4AFF;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    transition: opacity 0.2s;
}

.form-link-button:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Right Side: Product Icons */
.login-right {
    display: flex;
    justify-content: center;
}

.product-icons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 500px;
}

.product-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.icon-circle {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #6D4AFF, #8B6FFF);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    transition: transform 0.2s;
}

.product-icon:hover .icon-circle {
    transform: translateY(-4px);
}

.product-icon span {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

/* Alerts */
.alert {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
}

.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #10b981;
    color: #ffffff;
    border: 1px solid #059669;
    font-weight: 500;
}

/* Footer */
.login-footer {
    background: white;
    border-top: 1px solid #e2e8f0;
    padding: 24px 0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: #64748b;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #1e293b;
}

.footer-help a {
    color: #64748b;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-help a:hover {
    color: #1e293b;
}

.footer-version {
    text-align: center;
    color: #94a3b8;
    font-size: 12px;
    margin-top: 8px;
}

/* Responsive */
@media (max-width: 1024px) {
    .login-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .login-right {
        order: -1;
    }
    
    .product-icons {
        grid-template-columns: repeat(6, 1fr);
        gap: 16px;
    }
    
    .product-icon span {
        display: none;
    }
}

@media (max-width: 768px) {
    .login-form-container {
        padding: 32px 24px;
    }
    
    .product-icons {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

