* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
}

/* Page Background */
body {
    min-height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(120deg, #0d2b52 0%, #d40818 100%);
    animation: gradientBG 12s ease-in-out infinite alternate;
}
@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

/* Main Container */
.container {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 38px rgba(13, 43, 82, 0.17), 0 2px 8px rgba(212, 8, 24, 0.10);
    padding: 46px 34px 40px 34px;
    max-width: 430px;
    width: 100%;
    text-align: center;
    position: relative;
    transition: box-shadow 0.3s;
}
.container:hover {
    box-shadow: 0 18px 56px rgba(13, 43, 82, 0.24), 0 2px 8px rgba(212, 8, 24, 0.13);
}

.form-box {
    background: linear-gradient(120deg, #f7f8fa 90%, #fff 100%);
    padding: 38px 28px;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(13, 43, 82, 0.06);
}

/* Headings */
h2 {
    margin-bottom: 24px;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(90deg, #0d2b52 65%, #d40818 100%);
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    letter-spacing: 1px;
    transition: background 0.3s;
}

p {
    margin-bottom: 18px;
    color: #465166;
    font-size: 15px;
}

/* Input Group Styling */
.input-group {
    position: relative;
    margin-bottom: 28px;
    width: 100%;
    display: flex;
    align-items: center;
    background: #f7f7fb;
    border-radius: 8px;
    box-shadow: 0 1px 5px rgba(13,43,82,0.04);
    border: 1.5px solid #e7e7e7;
    transition: border-color 0.3s;
}
.input-group:focus-within {
    border-color: #0d2b52;
}

/* Prefix Styling */
.input-group .prefix {
    background: linear-gradient(90deg, #f2f2f2 75%, #e9e9e9 100%);
    padding: 13px 12px;
    font-size: 1.06rem;
    color: #0d2b52;
    border: none;
    border-radius: 8px 0 0 8px;
    font-weight: 600;
    letter-spacing: 1px;
    border-right: 2px solid #e0e0e0;
    transition: background 0.3s;
}

/* Input Field Styling */
.input-group input,
.input-group select {
    width: 100%;
    padding: 13px 10px 13px 16px;
    background: transparent;
    border: none;
    border-radius: 0 8px 8px 0;
    outline: none;
    font-size: 1rem;
    color: #1c1c1c;
    transition: background 0.2s;
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* Floating Label */
.input-group label {
    position: absolute;
    top: 50%;
    left: 55px; /* Adjust if prefix width changes */
    transform: translateY(-50%);
    font-size: 15px;
    color: #aaa;
    pointer-events: none;
    transition: 0.3s;
    background: transparent;
    padding: 0 5px;
    z-index: 2;
    font-weight: 500;
}

/* Label Animation */
.input-group input:focus + label,
.input-group input:valid + label,
.input-group select:focus + label,
.input-group select:valid + label {
    top: -13px;
    font-size: 12px;
    color: #d40818;
    background: #fff;
    border-radius: 7px;
    padding: 0 8px;
    font-weight: 600;
}

.input-group input:focus,
.input-group input:valid {
    background: #eef5fd;
}

.input-group select:focus,
.input-group select:valid {
    background: #eef5fd;
}

/* Custom Dropdown (Select) */
.input-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    background: #f9f9f9;
    border-left: 1.5px solid #e0e0e0;
    border-radius: 0 8px 8px 0;
    box-shadow: none;
    font-size: 1rem;
    color: #1c1c1c;
    padding-right: 34px;
    transition: background 0.2s, border-color 0.2s;
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg fill="%230d2b52" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M3 6l5 5 5-5"/></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 18px;
}
.input-group select:focus {
    border-color: #d40818;
}

/* Button Styles */
.btn {
    width: 100%;
    padding: 14px 0;
    background: linear-gradient(90deg, #0d2b52 30%, #d40818 100%);
    border: none;
    border-radius: 30px;
    color: #fff;
    font-size: 1.12rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 3px 14px rgba(13, 43, 82, 0.13);
    letter-spacing: 1.1px;
    transition: background 0.2s, transform 0.15s;
}
.btn:hover, .btn:focus {
    background: linear-gradient(90deg, #d40818 25%, #0d2b52 100%);
    transform: translateY(-3px) scale(1.02);
}

/* Responsive: Mobile Optimized */
@media (max-width: 500px) {
    .container {
        max-width: 97vw;
        padding: 18px 4vw 18px 4vw;
        border-radius: 12px;
    }
    .form-box {
        padding: 10px 2vw;
        border-radius: 8px;
    }
    h2 {
        font-size: 1.22rem;
    }
    .input-group .prefix {
        padding: 11px 7px;
        font-size: 0.97rem;
    }
    .input-group label {
        left: 38px;
    }
}
