/* loginPage.css */

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Segoe UI', sans-serif;
    background-color: #f8faff;
    overflow-x: hidden;
}

/* Background shapes */
.login-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23eaf0f8' fill-opacity='1' d='M0,288L48,272C96,256,192,224,288,213.3C384,203,480,213,576,224C672,235,768,245,864,250.7C960,256,1056,256,1152,240C1248,224,1344,192,1392,176L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3Cpath fill='%23dbe6f4' fill-opacity='0.5' d='M0,192L48,208C96,224,192,256,288,266.7C384,277,480,267,576,234.7C672,203,768,149,864,138.7C960,128,1056,160,1152,186.7C1248,213,1344,235,1392,245.3L1440,256L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-position: bottom;
    background-repeat: no-repeat;
    background-size: 100% auto;
}

.dots-left, .dots-right {
    position: absolute;
    width: 120px;
    height: 120px;
    background-image: radial-gradient(#cbd5e1 2px, transparent 2px);
    background-size: 20px 20px;
    opacity: 0.6;
}

.dots-left {
    bottom: 15%;
    left: 8%;
}

.dots-right {
    top: 15%;
    right: 12%;
}

/* Main Layout */
.login-page-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 10px;
    box-sizing: border-box;
}

/* Login Card */
.login-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    z-index: 10;
}

.login-header {
    text-align: center;
    margin-bottom: 20px;
}

.login-logo {
    height: auto;
    max-height: 45px;
    max-width: 100%;
    object-fit: contain;
    margin-bottom: 15px;
}

.login-title {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 5px 0;
}

.login-subtitle {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

/* Fields */
.login-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 15px;
}

.login-field label {
    font-size: 12px;
    font-weight: 500;
    color: #334155;
}

.input-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    width: 16px;
    height: 16px;
    color: #94a3b8;
    pointer-events: none;
}

.eye-icon {
    position: absolute;
    right: 14px;
    width: 16px;
    height: 16px;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.2s;
}

.eye-icon:hover {
    color: #475569;
}

.login-input {
    width: 100%;
    height: 40px;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 13px;
    background: #ffffff;
    color: #1e293b;
    box-sizing: border-box;
    transition: all 0.2s;
    font-family: 'Segoe UI', sans-serif;
}

.login-input.with-icon {
    padding-left: 38px;
}

.login-input.with-eye {
    padding-right: 38px;
}

.login-input:focus {
    outline: none;
    border-color: #003153;
    box-shadow: 0 0 0 3px rgba(0, 49, 83, 0.1);
}

.login-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

/* Button */
.btn-login {
    width: 100%;
    background: #003153;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, box-shadow 0.2s;
    margin-top: 5px;
}

.btn-login:hover {
    background: #00233b;
    box-shadow: 0 4px 10px rgba(0, 49, 83, 0.2);
}

/* Forgot Password */
.login-forgot-pwd {
    margin-top: 15px;
    text-align: center;
}

.login-forgot-pwd a {
    color: #2563eb;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

.login-forgot-pwd a:hover {
    text-decoration: underline;
}

/* Footer */
.login-footer {
    margin-top: 15px;
    font-size: 12px;
    color: #475569;
    z-index: 10;
}

.login-footer span {
    color: #2563eb;
    font-weight: 500;
}

/* Messages */
.login-error-msg {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 12px;
    text-align: center;
}

.login-success-msg {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 12px;
    text-align: center;
}

.login-validation-error {
    color: #dc2626;
    font-size: 11px;
    margin-top: 4px;
}
