@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #d32f2f;
    /* Deep Red */
    --primary-hover: #b71c1c;
    --secondary-color: #f5f5f5;
    --text-color: #333;
    --text-light: #666;
    --white: #ffffff;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --radius: 12px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f3f4f6;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #e0e0e0 0%, #f3f4f6 100%);
}

.inner {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: 1000px;
    min-height: 600px;
    position: relative;
}

/* --- Image Side (Desktop) --- */
.image-holder {
    width: 50%;
    background-color: #f8f9fa;
    /* You can change this to match the image background if needed */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    /* Removed padding for full bleed */
    position: relative;
    overflow: hidden;
}

.image-holder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Makes the image fill the area. Use 'contain' if text is being cut off. */
    display: block;
}

/* --- Form Side --- */
.inner form {
    width: 50%;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

form h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 10px;
    text-align: left;
}

form p.subtitle {
    color: var(--text-light);
    margin-bottom: 40px;
    font-size: 0.95rem;
}

/* --- Form Inputs --- */
.form-wrapper {
    position: relative;
    margin-bottom: 25px;
}

.form-wrapper input {
    width: 100%;
    padding: 15px 45px 15px 15px;
    /* Right padding for icon */
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    outline: none;
    background: #fafafa;
}

.form-wrapper input:focus {
    border-color: var(--primary-color);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(211, 47, 47, 0.1);
}

.form-wrapper i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 1.2rem;
    transition: var(--transition);
}

.form-wrapper input:focus+i {
    color: var(--primary-color);
}

/* --- Error Messages --- */
.help-block {
    color: #d32f2f;
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
}

/* --- Button --- */
button {
    width: 100%;
    padding: 15px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(211, 47, 47, 0.3);
}

button:active {
    transform: translateY(0);
}

button i {
    margin-left: 10px;
    font-size: 1.2rem;
}

/* --- Responsive Design --- */

/* Tablet & Mobile (Standard View) */
@media (max-width: 900px) {
    .inner {
        flex-direction: column;
        max-width: 500px;
        min-height: auto;
    }

    .image-holder {
        width: 100%;
        height: 250px;
        /* Slightly taller for better impact */
        padding: 0;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    }

    .image-holder img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .inner form {
        width: 100%;
        padding: 40px 30px;
    }

    form h3,
    form p.subtitle {
        text-align: center;
    }
}

/* Mobile (Small) */
@media (max-width: 480px) {
    .wrapper {
        padding: 15px;
        align-items: flex-start;
        /* Move up on very small screens if virtual keyboard opens */
        padding-top: 40px;
    }

    .inner {
        border-radius: var(--radius);
    }

    .image-holder {
        height: 200px;
    }

    .inner form {
        padding: 30px 20px;
    }

    form h3 {
        font-size: 1.7rem;
    }
}