﻿.login-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, .25);
    backdrop-filter: blur(5px);
    z-index: 9999;
    animation: fadeIn .3s ease;
}

.login-modal {
    font-family: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
    width: min(370px, 90vw);
    background: #fff;
    overflow: hidden;
    padding: 22px;
    border-radius: 14px;
    position: relative;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .10);
    animation: popup .3s ease;
}

    .login-modal::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 5px;
        background: #0d6dbf;
        border-radius: 22px 22px 0 0;
    }

.close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: #f2f5f8;
    cursor: pointer;
    font-size: 16px;
    transition: .3s;
}

    .close-btn:hover {
        background: #0d6dbf;
        color: white;
    }

.login-modal div {
    font-size: 25px;
    font-weight: 700;
    color: #111;
}

.login-subtitle {
    font-size: 13px;
    color: #666;
    margin-top: 6px;
    margin-bottom: 24px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 15px;
}

    .input-group label {
        font-size: 13px;
        font-weight: 600;
    }

.input-icon-wrap,
.password-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
}

.input-icon-wrap input,
.password-wrapper input {
    width: 100%;
    padding: 11px 14px 11px 42px;
    border: 1px solid #dde3ea;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}

    .input-icon-wrap input:focus,
    .password-wrapper input:focus {
        border-color: #0d6dbf;
    }

.show-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    cursor: pointer;
}

.forgot-box {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
}

    .forgot-box a {
        font-size: 13px;
        color: #0d6dbf;
        text-decoration: none;
    }

.signin-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: #0d6dbf;
    color: white;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: .3s;
}

    .signin-btn:hover:not(:disabled) {
        opacity: .9;
    }

    .signin-btn:disabled {
        background: #c3c9d1;
        color: #767f8c;
        cursor: not-allowed;
    }

.signup-text {
    margin-top: 16px;
    font-size: 13px;
    text-align: center;
}

.signup-link {
    border: none;
    background: none;
    font-size: 12px;
    color: #0d6dbf;
    font-weight: 600;
    cursor: pointer;
}

@keyframes popup {

    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}
