:root {
    --dark: #290907;
    --brown: #57473A;
    --green: #6E8658;
    --blue: #73A1B2;
    --light: #D0D5CE;
    --offwhite: #EFE9E1;
    --error: #d32f2f;
    --success: #388e3c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", sans-serif;
    background: linear-gradient(135deg, var(--offwhite) 0%, var(--light) 25%, #B8C5B8 50%, var(--light) 75%, var(--offwhite) 100%);
    background-size: 400% 400%;
    animation: gradientShift 25s ease infinite;
    color: var(--dark);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    padding: 20px;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* FLOOR REFLECTION */
body::before {
    content: '';
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 200px;
    background: radial-gradient(ellipse at center, rgba(41, 9, 7, 0.08), transparent);
    pointer-events: none;
    z-index: 1;
}

/* AMBIENT BLOBS */
.bg-blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
}

.bg-blob.one {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--blue), var(--green));
    top: -200px;
    left: -200px;
    opacity: 0.4;
    animation: float 20s infinite ease-in-out, morph 25s infinite ease-in-out;
}

.bg-blob.two {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--green), var(--brown));
    bottom: -150px;
    right: -150px;
    opacity: 0.35;
    animation: float 18s infinite ease-in-out 5s, morph 22s infinite ease-in-out 3s;
}

.bg-blob.three {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, var(--blue), var(--light));
    top: 40%;
    right: -180px;
    opacity: 0.3;
    animation: float 16s infinite ease-in-out 6s, morph 20s infinite ease-in-out 4s;
}

.bg-blob.four {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--brown), var(--dark));
    top: -120px;
    right: 25%;
    opacity: 0.25;
    animation: float 14s infinite ease-in-out 1s, morph 16s infinite ease-in-out 3s;
}

.bg-blob.five {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, var(--light), var(--blue));
    bottom: 25%;
    left: -130px;
    opacity: 0.28;
    animation: float 17s infinite ease-in-out 4s, morph 19s infinite ease-in-out 5s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(80px, -60px) rotate(90deg); }
    50% { transform: translate(-60px, 80px) rotate(180deg); }
    75% { transform: translate(60px, 50px) rotate(270deg); }
}

@keyframes morph {
    0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    25% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
    50% { border-radius: 50% 40% 60% 50% / 40% 70% 50% 60%; }
    75% { border-radius: 40% 70% 50% 60% / 70% 50% 60% 40%; }
}

/* LOGO */
.logo {
    font-family: "Playfair Display", serif;
    font-size: 28px;
    font-weight: 600;
    color: var(--dark);
    position: fixed;
    top: 30px;
    left: 60px;
    letter-spacing: -0.5px;
    z-index: 1000;
    animation: fadeInDown 0.8s ease;
}

.logo span {
    color: var(--green);
}

.logo-reflection {
    position: absolute;
    top: 100%;
    left: 0;
    opacity: 0.15;
    transform: scaleY(-1);
    background: linear-gradient(to bottom, var(--dark), transparent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* CONTAINER */
.container {
    width: 100%;
    max-width: 460px;
    padding: 50px 45px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 50px 100px rgba(41, 9, 7, 0.15),
        0 25px 50px rgba(110, 134, 88, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    position: relative;
    z-index: 10;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* REFLECTION EFFECT */
.container::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.12), transparent);
    transform: scaleY(-1);
    opacity: 0.4;
    border-radius: 28px;
    z-index: -1;
}

/* DECORATIVE ELEMENTS */
.decorative-line {
    position: absolute;
    top: 25px;
    left: 25px;
    width: 70px;
    height: 3px;
    background: linear-gradient(to right, var(--green), transparent);
    opacity: 0.5;
    border-radius: 2px;
}

.decorative-circle {
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2.5px solid var(--green);
    opacity: 0.4;
    animation: pulseDecor 3s infinite;
}

@keyframes pulseDecor {
    0%, 100% { 
        box-shadow: 0 0 0 0 rgba(110, 134, 88, 0.5);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 0 15px rgba(110, 134, 88, 0);
        transform: scale(1.1);
    }
}

/* HEADING */
h2 {
    font-family: "Playfair Display", serif;
    font-size: 42px;
    text-align: center;
    margin-bottom: 12px;
    color: var(--dark);
    line-height: 1.2;
}

h2 span {
    color: var(--green);
}

/* SUBTITLE */
.subtitle {
    text-align: center;
    font-size: 15px;
    color: var(--brown);
    margin-bottom: 35px;
    font-weight: 400;
    letter-spacing: 0.3px;
    opacity: 0.85;
}

/* MESSAGE STYLES */
.message {
    padding: 14px 20px;
    border-radius: 14px;
    margin-bottom: 22px;
    font-size: 14px;
    font-weight: 500;
    animation: slideIn 0.5s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.message::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
}

.message.success,
.message.messages.success {
    background: rgba(56, 142, 60, 0.12);
    color: var(--success);
    border: 1px solid rgba(56, 142, 60, 0.2);
}

.message.success::before {
    background: var(--success);
}

.message.error,
.message.messages.error {
    background: rgba(211, 47, 47, 0.12);
    color: var(--error);
    border: 1px solid rgba(211, 47, 47, 0.2);
}

.message.error::before {
    background: var(--error);
}

.message:not(.success):not(.error) {
    background: rgba(110, 134, 88, 0.12);
    color: var(--green);
    border: 1px solid rgba(110, 134, 88, 0.2);
}

.message:not(.success):not(.error)::before {
    background: var(--green);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* FORM */
form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* INPUT FIELDS */
input {
    font-family: "Inter", sans-serif;
    font-size: 15px;
    padding: 16px 20px;
    border: 1.5px solid rgba(87, 71, 58, 0.15);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.8);
    color: var(--dark);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

input::placeholder {
    color: var(--brown);
    opacity: 0.5;
    font-weight: 400;
}

input:focus {
    border-color: var(--green);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 
        0 0 0 4px rgba(110, 134, 88, 0.08),
        0 4px 12px rgba(110, 134, 88, 0.1);
    transform: translateY(-2px);
}

input:hover:not(:focus) {
    border-color: rgba(110, 134, 88, 0.3);
    background: rgba(255, 255, 255, 0.9);
}

/* BUTTON */
button {
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 600;
    padding: 16px;
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg, var(--dark) 0%, var(--brown) 100%);
    color: var(--offwhite);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 6px 20px rgba(41, 9, 7, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 10px 30px rgba(41, 9, 7, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    background: linear-gradient(135deg, var(--brown) 0%, var(--dark) 100%);
}

button:hover::before {
    left: 100%;
}

button:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(41, 9, 7, 0.3);
}

/* LOADING STATE */
button.loading {
    pointer-events: none;
    opacity: 0.8;
}

button.loading::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    top: 50%;
    left: 50%;
    margin-left: -9px;
    margin-top: -9px;
    border: 2.5px solid var(--offwhite);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* LINK */
a {
    text-align: center;
    color: var(--green);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin-top: 20px;
    display: block;
    transition: all 0.3s ease;
    position: relative;
}

a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--green);
    transition: width 0.3s ease;
}

a:hover {
    color: var(--dark);
}

a:hover::after {
    width: 100%;
}

/* ============================================ */
/* RESPONSIVE BREAKPOINTS */
/* ============================================ */

/* Tablet (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .logo {
        font-size: 26px;
        top: 25px;
        left: 50px;
    }

    .container {
        max-width: 440px;
        padding: 45px 40px;
    }

    h2 {
        font-size: 38px;
    }

    .subtitle {
        font-size: 14.5px;
        margin-bottom: 32px;
    }

    input {
        font-size: 14.5px;
        padding: 15px 18px;
    }

    button {
        font-size: 15px;
        padding: 15px;
    }

    .bg-blob.one,
    .bg-blob.two,
    .bg-blob.three,
    .bg-blob.four,
    .bg-blob.five {
        width: 500px;
        height: 500px;
        filter: blur(90px);
    }
}

/* Mobile Large (481px - 767px) */
@media (min-width: 481px) and (max-width: 767px) {
    .logo {
        font-size: 24px;
        top: 20px;
        left: 35px;
    }

    .logo-reflection {
        display: none;
    }

    body {
        padding: 15px;
    }

    .container {
        max-width: 420px;
        padding: 40px 35px;
        border-radius: 24px;
    }

    h2 {
        font-size: 36px;
        margin-bottom: 10px;
    }

    .subtitle {
        font-size: 14px;
        margin-bottom: 30px;
    }

    form {
        gap: 15px;
    }

    input {
        padding: 14px 18px;
        font-size: 14.5px;
        border-radius: 12px;
    }

    button {
        padding: 14px;
        font-size: 15px;
        border-radius: 12px;
    }

    .message {
        padding: 12px 18px;
        font-size: 13.5px;
        border-radius: 12px;
    }

    .decorative-line {
        top: 20px;
        left: 20px;
        width: 60px;
    }

    .decorative-circle {
        bottom: 25px;
        right: 25px;
        width: 12px;
        height: 12px;
    }

    .bg-blob {
        filter: blur(80px);
    }

    .bg-blob.one,
    .bg-blob.two,
    .bg-blob.three,
    .bg-blob.four,
    .bg-blob.five {
        width: 400px;
        height: 400px;
    }
}

/* Mobile (320px - 480px) */
@media (max-width: 480px) {
    .logo {
        font-size: 22px;
        top: 18px;
        left: 25px;
    }

    .logo-reflection {
        display: none;
    }

    body {
        padding: 12px;
        align-items: flex-start;
        padding-top: 80px;
    }

    .container {
        max-width: 100%;
        width: 100%;
        padding: 35px 28px 32px;
        border-radius: 22px;
    }

    .container::after {
        bottom: -40px;
        height: 40px;
        opacity: 0.3;
    }

    h2 {
        font-size: 32px;
        margin-bottom: 8px;
    }

    .subtitle {
        font-size: 13.5px;
        margin-bottom: 28px;
    }

    form {
        gap: 14px;
    }

    input {
        padding: 13px 16px;
        font-size: 14px;
        border-radius: 12px;
    }

    input:focus {
        transform: translateY(-1px);
        box-shadow: 
            0 0 0 3px rgba(110, 134, 88, 0.08),
            0 3px 10px rgba(110, 134, 88, 0.1);
    }

    button {
        padding: 13px 16px;
        font-size: 14.5px;
        border-radius: 12px;
        margin-top: 8px;
    }

    button:hover {
        transform: translateY(-2px);
    }

    a {
        font-size: 13px;
        margin-top: 18px;
    }

    .message {
        padding: 11px 16px;
        font-size: 13px;
        margin-bottom: 18px;
        border-radius: 11px;
    }

    .decorative-line {
        top: 18px;
        left: 18px;
        width: 50px;
        height: 2.5px;
    }

    .decorative-circle {
        bottom: 22px;
        right: 22px;
        width: 11px;
        height: 11px;
        border-width: 2px;
    }

    .bg-blob {
        filter: blur(70px);
    }

    .bg-blob.one {
        width: 350px;
        height: 350px;
        top: -150px;
        left: -150px;
    }

    .bg-blob.two {
        width: 300px;
        height: 300px;
        bottom: -120px;
        right: -120px;
    }

    .bg-blob.three {
        width: 280px;
        height: 280px;
        right: -140px;
    }

    .bg-blob.four {
        width: 250px;
        height: 250px;
        top: -100px;
    }

    .bg-blob.five {
        width: 270px;
        height: 270px;
        left: -100px;
    }
}

/* Small Mobile (320px - 380px) */
@media (max-width: 380px) {
    .logo {
        font-size: 20px;
        top: 16px;
        left: 20px;
    }

    body {
        padding: 10px;
        padding-top: 75px;
    }

    .container {
        padding: 32px 24px 28px;
        border-radius: 20px;
    }

    h2 {
        font-size: 28px;
    }

    .subtitle {
        font-size: 13px;
        margin-bottom: 24px;
    }

    form {
        gap: 13px;
    }

    input {
        padding: 12px 15px;
        font-size: 13.5px;
    }

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

    a {
        font-size: 12.5px;
        margin-top: 16px;
    }

    .message {
        padding: 10px 14px;
        font-size: 12.5px;
    }

    .bg-blob.one,
    .bg-blob.two,
    .bg-blob.three,
    .bg-blob.four,
    .bg-blob.five {
        width: 250px;
        height: 250px;
    }
}

/* Landscape Mobile Fix */
@media (max-height: 600px) and (orientation: landscape) {
    body {
        padding: 10px;
        align-items: flex-start;
        padding-top: 20px;
    }

    .logo {
        top: 12px;
        left: 20px;
        font-size: 20px;
    }

    .container {
        padding: 25px 30px 22px;
        margin: 10px auto 30px;
        border-radius: 18px;
    }

    .container::after {
        display: none;
    }

    h2 {
        font-size: 26px;
        margin-bottom: 6px;
    }

    .subtitle {
        font-size: 12px;
        margin-bottom: 18px;
    }

    form {
        gap: 11px;
    }

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

    button {
        padding: 10px 14px;
        font-size: 13.5px;
        margin-top: 5px;
    }

    a {
        margin-top: 12px;
        font-size: 12px;
    }

    .message {
        padding: 9px 14px;
        font-size: 12px;
        margin-bottom: 14px;
    }

    .decorative-line,
    .decorative-circle {
        display: none;
    }

    .bg-blob {
        display: none;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .container {
        border-width: 0.5px;
    }
    
    input {
        border-width: 1px;
    }

    .decorative-circle {
        border-width: 2px;
    }
}

/* Desktop (1025px+) - Full Experience */
@media (min-width: 1025px) {
    .logo {
        font-size: 28px;
        top: 30px;
        left: 60px;
    }

    .logo-reflection {
        display: block;
    }

    .container {
        max-width: 460px;
        padding: 50px 45px;
    }

    h2 {
        font-size: 42px;
    }

    .subtitle {
        font-size: 15px;
    }

    body::before {
        height: 200px;
    }
}