:root {
    --primary-color: #0A2540;
    --primary-dark: #001E3C;
    --accent-color: rgb(0, 71, 130);
    --accent-hover: #002E63;
    --text-primary: #001E3C;
    --text-secondary: #7B91B0;
    --border-color: #D1D5DB;
    --bg-light: #FFFFFF;
    --input-bg: #FFFFFF;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
}

* {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background: #FFFFFF;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 500px;
}

.login-card {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    padding: 56px 48px;
    border: none;
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-logo {
    display: none;
}

.login-logo svg {
    display: none;
}

.login-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.login-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 400;
}

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.phone-input-group {
    display: flex;
    align-items: center;
    gap: 0;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    padding: 4px;
    background: var(--input-bg);
    transition: all 0.2s ease;
}

.phone-input-group:focus-within {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(0, 61, 130, 0.1);
}

.country-select-wrapper {
    position: relative;
    flex: 0 0 auto;
}

.country-select-btn {
    height: 52px;
    border: none;
    border-radius: 50px;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 15px;
    font-weight: 600;
}

.country-select-btn:hover {
    background: rgba(0, 61, 130, 0.05);
}

.country-select-btn:focus {
    outline: none;
    background: rgba(0, 61, 130, 0.05);
}

.country-flag {
    font-size: 22px;
    line-height: 1;
}

.country-code {
    color: var(--text-primary);
    font-weight: 600;
}

.dropdown-arrow {
    margin-left: auto;
    color: var(--text-secondary);
    transition: transform 0.2s ease;
}

.country-select-wrapper.open .dropdown-arrow {
    transform: rotate(180deg);
}

.country-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 320px;
    max-height: 320px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    display: none;
    overflow: hidden;
}

.country-select-wrapper.open .country-dropdown {
    display: block;
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.country-search {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background: #fff;
}

.country-search input {
    width: 100%;
    height: 40px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0 12px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.country-search input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.country-search input::placeholder {
    color: #adb5bd;
}

.country-list {
    max-height: 256px;
    overflow-y: auto;
    padding: 8px;
}

.country-list::-webkit-scrollbar {
    width: 6px;
}

.country-list::-webkit-scrollbar-track {
    background: transparent;
}

.country-list::-webkit-scrollbar-thumb {
    background: #dee2e6;
    border-radius: 3px;
}

.country-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.country-item:hover {
    background: var(--bg-light);
}

.country-item.selected {
    background: rgba(67, 97, 238, 0.08);
}

.country-item .flag {
    font-size: 22px;
    line-height: 1;
}

.country-item .name {
    flex: 1;
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

.country-item .dial-code {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
}

.phone-input {
    flex: 1;
    position: relative;
}

/* .phone-input::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 24px;
    background: var(--border-color);
} */

.phone-input input {
    width: 100%;
    height: 52px;
    border: none;
    border-radius: 50px;
    padding: 0 20px;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
    background: transparent;
}

.phone-input input:hover {
    background: rgba(0, 61, 130, 0.02);
}

.phone-input input:focus {
    outline: none;
    background: transparent;
}

.phone-input input::placeholder {
    color: #9CA3AF;
    font-weight: 400;
}

.btn-login {
    width: 100%;
    height: 60px;
    background: var(--accent-color);
    border: none;
    border-radius: 50px;
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-top: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-login:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 61, 130, 0.3);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login svg {
    display: none;
}

.login-footer {
    text-align: center;
    margin-top: 32px;
    padding-top: 0;
    border-top: none;
}

.login-footer p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 0 8px 0;
    line-height: 1.6;
}

.login-footer a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 16px;
        align-items: flex-start;
        padding-top: 40px;
    }

    .login-container {
        max-width: 100%;
    }

    .login-card {
        padding: 40px 32px;
        border-radius: 20px;
    }

    .login-header {
        margin-bottom: 32px;
    }

    .login-title {
        font-size: 36px;
    }

    .login-subtitle {
        font-size: 15px;
    }

    .btn-login {
        height: 56px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 12px;
        padding-top: 24px;
    }

    .login-card {
        padding: 32px 24px;
        border-radius: 18px;
    }

    .login-header {
        margin-bottom: 28px;
    }

    .login-title {
        font-size: 32px;
        margin-bottom: 10px;
    }

    .login-subtitle {
        font-size: 14px;
    }

    .phone-input-group {
        padding: 3px;
    }

    .country-select-btn {
        height: 48px;
        padding: 0 12px;
    }

    .phone-input input {
        height: 48px;
        padding: 0 16px;
        font-size: 15px;
    }

    .btn-login {
        height: 52px;
        font-size: 16px;
        margin-top: 20px;
    }

    .login-footer {
        margin-top: 28px;
    }

    .login-footer p {
        font-size: 13px;
    }
}

@media (max-width: 360px) {
    body {
        padding: 8px;
        padding-top: 16px;
    }

    .login-card {
        padding: 28px 20px;
    }

    .login-title {
        font-size: 28px;
    }

    .country-select-btn {
        padding: 0 10px;
        gap: 6px;
    }

    .country-flag {
        font-size: 18px;
    }

    .country-code {
        font-size: 13px;
    }
}