* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
}

/* Body Background */
body {
    min-height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(120deg, #0d2b52 0%, #d40818 100%);
    /* subtle animated gradient */
    animation: gradientBG 10s ease-in-out infinite alternate;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

/* Main Container */
.container {
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 10px 42px rgba(13, 43, 82, 0.16), 0 2px 8px rgba(212, 8, 24, 0.08);
    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 18px 56px rgba(13, 43, 82, 0.23), 0 2px 8px rgba(212, 8, 24, 0.11);
}

/* Heading Style */
h2 {
    margin-bottom: 28px;
    font-size: 2.1rem;
    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;
}

/* Form Box */
.form-box {
    background: linear-gradient(120deg, #f7f8fa 90%, #fff 100%);
    padding: 38px 28px;
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(13, 43, 82, 0.06);
}

/* Input Group */
.input-group {
    position: relative;
    margin-bottom: 32px;
    width: 100%;
}

.input-group input {
    width: 100%;
    padding: 14px 16px 14px 20px;
    background: #f4f6fb;
    border: none;
    border-radius: 9px;
    border-bottom: 3px solid #eee;
    outline: none;
    font-size: 1.06rem;
    color: #222;
    transition: border-bottom 0.3s, background 0.3s;
    box-shadow: 0 1px 2px rgba(13, 43, 82, 0.04);
}

.input-group label {
    position: absolute;
    top: 54%;
    left: 22px;
    transform: translateY(-50%);
    font-size: 15px;
    color: #757575;
    pointer-events: none;
    transition: 0.3s;
    background: transparent;
    padding: 0 4px;
}

/* Floating label animation */
.input-group input:focus,
.input-group input:valid {
    background: #eaf2fa;
    border-bottom: 3px solid #0d2b52;
}
.input-group input:focus + label,
.input-group input:valid + label {
    top: -12px;
    font-size: 13px;
    color: #d40818;
    background: #fff;
    padding: 0 6px;
    border-radius: 6px;
    font-weight: 600;
}

/* Button Styling */
.btn {
    width: 100%;
    padding: 14px 0;
    background: linear-gradient(90deg, #0d2b52 30%, #d40818 100%);
    border: none;
    border-radius: 30px;
    color: #fff;
    font-size: 1.13rem;
    font-weight: 600;
    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);
}

/* Link Styles */
.forgot-password,
.signup-option {
    margin-top: 16px;
    font-size: 15px;
    color: #45505c;
    letter-spacing: 0.03em;
}

.forgot-password a,
.signup-option a {
    font-size: 16px;
    color: #0d2b52;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.22s;
    padding: 0 2px;
    position: relative;
}
.forgot-password a:hover,
.signup-option a:hover {
    color: #d40818;
    text-decoration: underline;
    background: linear-gradient(90deg, #fff 30%, #d4081822 80%);
    border-radius: 6px;
}

/* Additional spacing for signup */
.signup-option {
    margin-top: 24px;
}

/* Subtle glassy effect */
@media (max-width: 480px) {
    .container {
        max-width: 96vw;
        padding: 24px 4vw 20px 4vw;
        border-radius: 14px;
    }
    .form-box {
        padding: 16px 4vw;
        border-radius: 10px;
    }
    h2 {
        font-size: 1.4rem;
    }
}
