/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

/* BACKGROUND */
body {
    min-height: 100vh;
    background: radial-gradient(circle at top, #1e293b, #020617);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* CONTAINER */
.container {
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* CARD */
.card {
    width: 100%;
    max-width: 400px;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(25px);
    border-radius: 20px;
    padding: 35px 25px;
    box-shadow: 0 25px 70px rgba(0,0,0,0.6);
    color: white;
    animation: fadeIn 0.6s ease;
}

/* HEADER */
.header {
    text-align: center;
    margin-bottom: 25px;
}

/* LOGO */
.logo {
    width: 60px;
    margin-bottom: 10px;
}

/* TITLE */
.header h1 {
    font-size: 26px;
    font-weight: 600;
}

/* SUBTITLE */
.header p {
    font-size: 14px;
    color: #94a3b8;
}

/* ALERTS */
.alert {
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 13px;
    text-align: center;
}

.alert.success {
    background: rgba(34,197,94,0.15);
    color: #22c55e;
}

.alert.error {
    background: rgba(239,68,68,0.15);
    color: #ef4444;
}

/* INPUT BOX */
.input-box {
    position: relative;
    margin-bottom: 20px;
}

/* ICON INSIDE INPUT */
.input-box .icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
}

/* ICON SIZE */
.input-box .icon svg {
    width: 18px;
    height: 18px;
    color: #94a3b8;
}

/* INPUT */
.input-box input {
    width: 100%;
    padding: 14px 14px 14px 45px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04);
    color: white;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

/* PLACEHOLDER */
.input-box input::placeholder {
    color: #64748b;
}

/* FOCUS */
.input-box input:focus {
    border-color: #22c55e;
    background: rgba(255,255,255,0.06);
    box-shadow: 0 0 12px rgba(34,197,94,0.3);
}

/* BUTTON */
button {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

/* HOVER */
button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(34,197,94,0.4);
}

/* LOADING */
button.loading span {
    visibility: hidden;
}

button.loading::after {
    content: "";
    width: 18px;
    height: 18px;
    border: 3px solid white;
    border-top: 3px solid transparent;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: spin 1s linear infinite;
}

/* FOOTER */
.footer {
    margin-top: 20px;
    text-align: center;
    font-size: 12px;
    color: #64748b;
}

/* ANIMATIONS */
@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* MOBILE */
@media (max-width: 480px) {
    .card {
        padding: 25px 20px;
    }

    .header h1 {
        font-size: 22px;
    }
}

/* Currency inside input */
.currency-box {
    position: relative;
}

.currency {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    color: #94a3b8;
}

/* Add space so text doesn’t overlap */
.currency-box input {
    padding-right: 55px;
}

/* CONTAINER */
.container {
    width: 100%;
    min-height: 100vh;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* CARD */
.card {
    width: 100%;
    max-width: 420px;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(25px);
    border-radius: 20px;
    padding: 35px 25px;
    box-shadow: 0 25px 70px rgba(0,0,0,0.6);
    color: white;
}

@media (max-width: 480px) {

    body {
        align-items: flex-start;
        padding-top: 40px;
    }

    .container {
        padding: 15px;
    }

    .card {
        max-width: 100%;
        width: 100%;
        padding: 25px 20px;
        border-radius: 16px;
    }

    .header h1 {
        font-size: 22px;
    }

    .logo {
        width: 50px;
    }

    .input-box input {
        font-size: 16px; /* prevents zoom on iPhone */
        padding: 16px 16px 16px 45px;
    }

    button {
        padding: 16px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    body {
        background: #020617;
    }

    .card {
        height: auto;
        margin-top: 20px;
    }
}

.loader {
    margin: 20px auto;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255,255,255,0.2);
    border-top: 4px solid #22c55e;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Custom Select (Dropdown) */
.custom-select {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border-radius: 12px;
    border: none;
    outline: none;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 14px;
    appearance: none; /* removes default ugly style */
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* Dropdown arrow */
.input-box {
    position: relative;
}

.custom-select {
    cursor: pointer;
}

/* Optional: add custom arrow */
.input-box.select-box::after {
    content: "▼";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: #aaa;
    pointer-events: none;
}