﻿:root {
    --primary: #50d1fb;
    --primary-dark: #2da6cf;
    --bg-gradient: linear-gradient(135deg, #50d1fb 0%, #4a9cfb 50%, #4a63fb 100%);
    --text-main: #111827;
    --text-muted: #020408;
    --border-soft: #e5e7eb;
    --shadow-card: 0 20px 40px rgba(15, 23, 42, 0.18);
    --radius-card: 36px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Source Sans Pro', Tahoma, Arial, sans-serif;
    background: var(--bg-gradient);
}

input::placeholder {
    color: #9ca3af;
}

input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px white inset !important;
}

.clearfix {
    display: flow-root;
}

.disabled {
    pointer-events: none;
    opacity: 0.6;
}

.page {
    width: 100%;
    max-width: 1200px;
    padding: 40px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #ffffff;
}

.root {
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

/* LEFT SIDE --------------------------------------------------------- */
.hero {
    flex: 1;
    padding-right: 40px;
    position: relative;
}

    .hero .country-select {
        width: 200px;
        margin-bottom: 30px;
    }

.logo-row {
    display: flex;
    margin-bottom: 30px;
}

.logo-icon {
    width: 200px;
}

    .logo-icon img {
        width: 100%;
        filter: brightness(0) invert(1);
    }

.hero-title {
    font-size: 46px;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 22px;
}

.hero-description {
    font-size: 14px;
    max-width: 420px;
    line-height: 1.7;
    opacity: 0.85;
}

.hidden {
    display: none;
}

/* RIGHT SIDE (CARD) ------------------------------------------------- */
.card {
    width: 360px;
    background: #ffffff;
    color: var(--text-main);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 40px 40px 30px;
}

.card-header {
    text-align: center;
    margin-bottom: 28px;
}

    .card-header h2 {
        font-size: 22px;
        font-weight: 600;
        margin-bottom: 6px;
    }

    .card-header p {
        font-size: 13px;
        color: var(--text-muted);
    }

.field-group {
    margin-bottom: 14px;
}

    .field-group.has-error .input, .field-group.has-error .input-password {
        border-color: #DC3545 !important;
    }

.input-password {
    align-items: center;
    border-radius: 999px;
    border: 2px solid #e2e8f0;
    display: flex;
    padding-right: 16px;
    width: 100%;
}

    .input-password:focus-within {
        border-color: var(--primary);
    }

    .input-password input {
        border-radius: 999px;
        border: none;
        color: var(--text-main);
        font-size: 14px;
        outline: none;
        padding: 10px 16px;
        width: 100%;
    }

    .input-password i {
        color: #a1a1a9;
    }

.input {
    width: 100%;
    border-radius: 999px;
    border: 2px solid #e2e8f0;
    padding: 10px 16px;
    font-size: 14px;
    outline: none;
    background: #FFFFFF;
    color: var(--text-main);
    transition: border-color 0.18s ease;
}

    .input:focus {
        border-color: var(--primary);
    }

.forgot-link {
    float: right;
    align-items: center;
    justify-content: end;
    column-gap: 5px;
    cursor: pointer;
    display: flex;
    font-size: 14px;
    margin-bottom: 18px;
    color: #4f7be8;
    user-select: none;
}

    .forgot-link:hover {
        text-decoration: underline;
    }

.btn {
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    border-radius: 999px;
    padding: 10px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}

.btn-back {
    border-radius: 5px;
    padding: 5px 9px;
}

.btn-login {
    width: 100%;
    background: var(--primary);
    color: #ffffff;
}

    .btn-login:hover {
        background: var(--primary-dark);
        transform: translateY(-1px);
    }

    .btn-login:active {
        transform: translateY(0);
    }

    .btn-login:disabled {
        opacity: 0.5;
    }

.country-select {
    position: relative;
    width: 100%;
    font-size: 14px;
}

.country-select__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 8px 12px;
    border-radius: 999px;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    cursor: pointer;
}

    .country-select__trigger:hover {
        border-color: #50d1fb;
    }

.country-select__label {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .country-select__label i {
        padding: 10px;
    }

.country-select__arrow {
    margin-left: 8px;
    font-size: 18px;
    color: #6b7280;
}

.country-select__menu {
    position: absolute;
    top: 110%;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
    padding: 6px 0;
    margin: 4px 0 0;
    list-style: none;
    max-height: 240px;
    overflow-y: auto;
    display: none;
    z-index: 50;
}

    .country-select__menu.open {
        display: block;
    }

.country-select__option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 13px;
}

    .country-select__option:hover {
        background: #f3f4ff;
    }

    .country-select__option i {
        padding: 10px;
    }

    .country-select__option span {
        color: #111827;
    }

.text-error {
    color: #DC3545;
    font-size: 13px;
}

.mb-lg {
    margin-bottom: 1rem;
}

.mb-lg-x {
    margin-bottom: 2rem !important;
}

.w100 {
    width: 100%;
}

#toast-container {
    position: fixed;
    top: 4rem;
    right: 0;
    transform: translateX(-10%);
    z-index: 9999;
}

.toast {
    min-width: 280px;
    max-width: 360px;
    background: #fff;
    box-shadow: 0 10px 25px rgba(0,0,0,.15);
    border-radius: .5rem;
    padding: .9rem 1rem;
    display: flex !important;
    column-gap: 5px;
    align-items: flex-start;
    justify-content: space-between;
}

.toast-body {
    font-size: .9rem;
}

.toast-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    height: 18px;
}

.toast-success {
    background-color: #16a34a;
    color: #FFFFFF;
}

    .toast-success .toast-close {
        color: #FFFFFF;
    }

.toast-info {
    background-color: #e8f3ff;
    color: #0b3d91;
}

    .toast-info .toast-close {
        color: #0b3d91;
    }

.toast-error {
    background-color: #dc2626;
    color: #FFFFFF;
}

    .toast-error .toast-close {
        color: #FFFFFF;
    }

.toast-warning {
    background-color: #f97316;
    color: #FFFFFF;
}

    .toast-warning .toast-close {
        color: #FFFFFF;
    }

.show-toast {
    animation: slideUp .35s ease;
}

.hide-toast {
    animation: fadeOut .3s forwards;
}

.rights {
    color: #FFFFFF;
    display: block;
    font-size: 0.8em;
    left: 30px;
    position: absolute;
    bottom: 30px;
}

#smsCodeCounter {
    float: left;
    font-weight: 500;
    font-size: 18px;
}

.text-muted {
    color: #6B7280;
    font-size: 0.8em;
    margin-bottom: 1rem;
    display: block;
}
/* ANIMATIONS ---------------------------------------------------------*/
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(0, 40px);
    }

    to {
        opacity: 1;
        transform: translate(0, 0);
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translate(0, 40px);
    }
}
/* RESPONSIVE -------------------------------------------------------- */
@media (max-width: 992px) {
    .country-select {
        margin: 0 auto 30px auto;
    }

    .page {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 40px 20px;
    }

    .hero {
        padding-right: 0;
        margin-bottom: 40px;
    }

    .hero-description {
        margin: 0 auto;
    }

    .logo-row {
        justify-content: center;
    }

    .rights {
        bottom: 0;
        box-sizing: border-box;
        left: 0;
        padding: 30px 80px 30px 30px;
        position: relative;
    }
}

@media (max-width: 500px) {
    .page {
        padding: 24px 16px;
    }

    .card {
        width: 100%;
        padding: 32px 24px 24px;
    }

    .hero-title {
        font-size: 36px;
    }

    .logo-row {
        justify-content: center;
    }
}
