﻿/* ===== Login Page - Redesigned ===== */

html,
body {
    margin: 0;
    padding: 0;
}

/* Top navbar */
.login-navbar {
    background-color: transparent;
    padding: 16px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
}

.login-navbar .navbar-logo svg {
    height: 36px;
    width: auto;
}

.login-navbar .navbar-lang {
    color: #111113;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.login-navbar .navbar-lang .globe-icon {
    width: 18px;
    height: 18px;
}

/* Full page wrapper */
.login-page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(70deg, #FFF0E6 5%, #FFE2E5 45%, #FFCDA8 95%);
    background-attachment: fixed;
}

/* Main content area */
.login-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Login card */
.login-card {
    width: 100%;
    max-width: 480px;
}

.login-card .welcome-text {
    font-size: 16px;
    color: #111113;
    margin-bottom: 4px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 400;
}

.login-card .login-title {
    font-size: 32px;
    color: #111113;
    margin-bottom: 10px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 400;
    line-height: 1.2;
}

/* Form labels */
.login-card .form-label {
    font-size: 14px;
    font-weight: 500;
    color: #111113;
    margin-bottom: 6px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Input fields */
.login-card .login-input {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    background-color: #fff;
    color: #111113;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.login-card .login-input:focus {
    border-color: #e87722;
    outline: none;
}

.login-card .login-input::placeholder {
    color: #aaa;
}

/* Password wrapper with eye icon */
.password-wrapper {
    position: relative;
}

.password-wrapper .login-input {
    padding-right: 44px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #111113;
    padding: 0;
    display: flex;
    align-items: center;
}

.password-toggle:hover {
    color: #111113;
}

.password-toggle svg {
    width: 20px;
    height: 20px;
}

/* Form group spacing */
.login-form-group {
    margin-bottom: 15px;
}

/* Remember me + Forgot password row */
.login-options-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #111113;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    cursor: pointer;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #e87722;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: 2px solid #e87722;
    border-radius: 3px;
    background-color: #fff;
    position: relative;
}

.remember-me input[type="checkbox"]:checked {
    background-color: #e87722;
    border-color: #e87722;
}

.remember-me input[type="checkbox"]:checked::after {
    content: '\2713';
    color: #fff;
    font-size: 13px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.forgot-link {
    font-size: 14px;
    color: #111113 !important;
    text-decoration: none;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 500;
}

.forgot-link:hover {
    text-decoration: underline;
}

/* Login button */
.login-btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 500;
    color: #111113;
    background-color: #FFAA72;
    border: none;
    cursor: pointer;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    transition: background-color 0.2s;
    margin-bottom: 16px;
}

.login-btn:hover {
    background-color: #FFAA72;
}

.login-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* SSO Login link */
.sso-link {
    display: block;
    text-align: center;
    font-size: 14px;
    color: #111113 !important;
    text-decoration: none;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 500;
}

.sso-link:hover {
    text-decoration: underline;
}

/* Error messages */
.error {
    display: none;
}

.errortext {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 12px;
    color: #d9534f;
    margin-top: 4px;
}

.error-message {
    display: none;
    background-color: #d9534f;
    color: white;
    padding: 10px 14px;
    border-radius: 6px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 13px;
    margin-bottom: 16px;
}

/* Footer */
.login-footer {
    text-align: center;
    padding: 20px 30px 16px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.login-footer .footer-disclaimer {
    font-size: 12px;
    color: #111113;
    line-height: 1.5;
    margin-bottom: 12px;
}

.login-footer .footer-disclaimer a {
    color: #111113 !important;
    text-decoration: underline;
}

.login-footer .footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 20px;
}

.login-footer .footer-links a {
    font-size: 13px;
    color: #111113 !important;
    text-decoration: underline;
    font-weight: 500;
}

.login-footer .footer-links a:hover {
    color: #e87722 !important;
}

a {
    outline: none !important;
}

.close:hover {
    outline: none !important;
}

a:focus,
button:focus {
    outline-color: #7AACFE;
}

/* Responsive */
@media (max-width: 576px) {
    .login-card {
        max-width: 100%;
    }

    .login-card .login-title {
        font-size: 24px;
    }

    .login-content {
        padding: 24px 16px;
    }

    .login-navbar {
        padding: 10px 16px;
    }

    .login-footer .footer-links {
        flex-direction: column;
        gap: 8px;
    }
}

.description {
    font-size: 13px;
}