/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
}

body {
    min-height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(120deg, #0d2b52 0%, #d40818 100%);
    animation: gradientBG 10s ease-in-out infinite alternate;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.container {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 40px rgba(13, 43, 82, 0.18), 0 2px 8px rgba(212, 8, 24, 0.12);
    padding: 46px 34px 40px 34px;
    max-width: 410px;
    width: 100%;
    text-align: center;
    position: relative;
    transition: box-shadow 0.3s;
}

.container:hover {
    box-shadow: 0 20px 60px rgba(13, 43, 82, 0.25), 0 2px 8px rgba(212, 8, 24, 0.15);
}

.form-box {
    background: linear-gradient(120deg, #f8fafc 85%, #fff 100%);
    padding: 38px 28px;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(13, 43, 82, 0.06);
}

h2 {
    margin-bottom: 24px;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(90deg, #0d2b52 70%, #d40818 100%);
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    letter-spacing: 1.2px;
    animation: fadeInUp 0.6s ease-in;
}

/* Input Group Styling */
.input-group {
    position: relative;
    margin-bottom: 28px;
    width: 100%;
}

.input-group input {
    width: 100%;
    padding: 14px 16px 14px 22px;
    background: #f6f8fd;
    border: none;
    border-bottom: 3px solid #e2e4ea;
    border-radius: 7px 7px 0 0;
    outline: none;
    font-size: 1.06rem;
    color: #182848;
    font-weight: 500;
    letter-spacing: 0.05em;
    box-shadow: 0 1px 4px rgba(13, 43, 82, 0.03);
    transition: border-bottom 0.3s, background 0.3s;
}

.input-group input:focus,
.input-group input:valid {
    background: #eaf2fa;
    border-bottom: 3px solid #d40818;
}

.input-group label {
    position: absolute;
    top: 50%;
    left: 26px;
    transform: translateY(-50%);
    font-size: 15px;
    color: #aaa;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(.68,-0.55,.27,1.55);
    background: transparent;
    padding: 0 6px;
    z-index: 2;
}

.input-group input:focus + label,
.input-group input:valid + label {
    top: -13px;
    font-size: 12px;
    color: #0d2b52;
    background: #fff;
    border-radius: 7px;
    padding: 0 8px;
    font-weight: 600;
}

/* Button Styles */
.btn {
    width: 100%;
    padding: 15px 0;
    background: linear-gradient(90deg, #0d2b52 30%, #d40818 100%);
    border: none;
    border-radius: 32px;
    color: #fff;
    font-size: 1.13rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 3px 16px rgba(13, 43, 82, 0.12);
    letter-spacing: 1.1px;
    transition: background 0.22s, transform 0.13s;
}

.btn:hover, .btn:focus {
    background: linear-gradient(90deg, #d40818 25%, #0d2b52 100%);
    transform: translateY(-2px) scale(1.02);
}

/* Info text & Links */
p {
    margin-top: 24px;
    color: #45505c;
    font-size: 15px;
    animation: fadeInUp 0.7s;
}

p a {
    color: #0d2b52;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

p a:hover {
    color: #d40818;
    text-decoration: underline;
    background: linear-gradient(90deg, #fff 30%, #d4081811 80%);
    border-radius: 5px;
}

/* Fade-in animation for form elements */
.form-box h2, .form-box p {
    animation: fadeInUp 0.5s ease-in-out;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(28px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive: Mobile Optimized */
@media (max-width: 500px) {
    .container {
        max-width: 97vw;
        padding: 18px 4vw 18px 4vw;
        border-radius: 11px;
    }
    .form-box {
        padding: 10px 2vw;
        border-radius: 8px;
    }
    h2 {
        font-size: 1.22rem;
    }
    .input-group label {
        left: 16px;
    }
}
