* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}


body {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
}

.card {
    background: #1e293b;
    padding: 50px;
    border-radius: 20px;
    width: 400px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    text-align: center;
}


.title {
    font-size: 28px;
    color: #f1f5f9;
    margin-bottom: 8px;
}

.subtitle {
    font-size: 14px;
    color: #9ca3af;
    margin-bottom: 30px;
}


.form-group {
    margin-bottom: 25px;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 6px;
    color: #cbd5e1;
    font-weight: 500;
}


.input-icon {
    position: relative;
}

.input-icon i {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 16px;
}

.input-icon input {
    width: 100%;
    padding: 12px 12px 12px 38px;
    /* left padding for icon */
    border-radius: 10px;
    border: 1px solid #334155;
    background: #0f172a;
    color: #f1f5f9;
    font-size: 15px;
    outline: none;
    transition: all 0.3s;
}

.input-icon input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.4);
}

/* Error / Success */

.error-message {
    font-size: 12px;
    margin-top: 4px;
    display: none;
    transition: 0.3s ease;
}

.form-group.error input {
    border-color: #ef4444;
}

.form-group.error .error-message {
    color: #ef4444;
    display: block;

}

.form-group.success input {
    border-color: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
}

button.btn {
    margin-top: 10px;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(90deg, #6366f1, #4f46e5);
    color: white;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

button.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.5);
}


.footer-text {
    margin-top: 20px;
    font-size: 13px;
    color: #9ca3af;
}

.footer-text a {
    color: #6366f1;
    text-decoration: none;
}

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


@media (max-width: 500px) {
    .card {
        width: 90%;
        padding: 30px;
    }

    .title {
        font-size: 24px;
    }

    .subtitle {
        font-size: 13px;
    }

    input {
        font-size: 14px;
        padding: 10px 10px 10px 36px;
    }

    button.btn {
        font-size: 15px;
        padding: 12px;
    }
}

@media (max-width: 400px) {
    .title {
        font-size: 22px;
    }

    .subtitle {
        font-size: 12px;
    }

    input {
        padding: 9px 9px 9px 34px;
    }

    button.btn {
        padding: 11px;
        font-size: 14px;
    }
}


@media (min-width: 501px) and (max-width: 768px) {
    .card {
        width: 350px;
        padding: 35px;
    }

    .title {
        font-size: 26px;
    }

    .subtitle {
        font-size: 14px;
    }

    input {
        font-size: 15px;
        padding: 11px 11px 11px 36px;
    }

    button.btn {
        padding: 13px;
        font-size: 15px;
    }
}