/* Base styles */

:root {
    --primary-color: #007bff;
    /* Professional Blue */
    --primary-color-dark: #0056b3;
    --secondary-color: #6c757d;
    /* Muted Gray */
    --background-color: #f8f9fa;
    /* Light Gray Background */
    --surface-color: #ffffff;
    /* White for cards/panels */
    --text-color: #343a40;
    /* Dark Gray for text */
    --text-color-light: #6c757d;
    --border-color: #dee2e6;
    --success-color: #28a745;
    --error-color: #dc3545;
    --font-family: 'Poppins', sans-serif;
}

body {
    font-family: var(--font-family);
    margin: 0;
    background-color: var(--background-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: var(--text-color);
    line-height: 1.6;
}


/* Main container for the two-panel layout */

.auth-container {
    display: flex;
    width: 960px;
    /* Max width */
    max-width: 95%;
    background-color: var(--surface-color);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
    /* Important for border-radius and potential overflows */
}


/* Form Panel (Left) */

.form-panel {
    flex: 1.2;
    /* Slightly larger than branding panel */
    padding: 40px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-container {
    text-align: center;
    margin-bottom: 25px;
}

.logo-container img {
    max-width: 150px;
    /* Adjust as needed */
    /* If using text logo: */
    /* font-size: 28px; font-weight: 700; color: var(--primary-color); */
}

.logo-text {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 25px;
}


/* Branding Panel (Right) */

.branding-panel {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color-dark));
    color: var(--surface-color);
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.branding-panel .icon {
    font-size: 60px;
    margin-bottom: 25px;
}

.branding-panel h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 15px;
}

.branding-panel p {
    font-size: 16px;
    line-height: 1.7;
    max-width: 90%;
    opacity: 0.9;
}


/* Form elements styling */

.form-face h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color);
    text-align: center;
}

.form-face .subtitle {
    font-size: 14px;
    color: var(--text-color-light);
    margin-bottom: 30px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    /* Hidden by placeholder, but good for accessibility */
    display: none;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-color-light);
    font-size: 16px;
}

.form-control {
    width: 100%;
    padding: 12px 15px 12px 45px;
    /* Padding for icon */
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 13px;
}

.form-check {
    display: flex;
    align-items: center;
}

.form-check-input {
    margin-right: 8px;
    accent-color: var(--primary-color);
}

.form-check-label {
    color: var(--text-color-light);
    font-weight: 400;
}

.forgot-password-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.forgot-password-link:hover {
    text-decoration: underline;
}

.btn {
    display: block;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    /* For <a> tags styled as buttons */
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--surface-color);
}

.btn-primary:hover {
    background-color: var(--primary-color-dark);
    box-shadow: 0 4px 12px rgba(46, 92, 138, 0.25);
}

.btn-primary:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.btn-google {
    background-color: var(--surface-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-google img,
.btn-google .fab {
    width: 18px;
    height: 18px;
    margin-right: 12px;
}

.btn-google:hover {
    background-color: #f8f9fa;
    border-color: #9ca3af;
}

.btn-google:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-color: var(--primary-color);
}

.divider {
    text-align: center;
    margin: 25px 0;
    font-size: 13px;
    color: var(--text-color-light);
    display: flex;
    align-items: center;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.divider:not(:empty)::before {
    margin-right: .75em;
}

.divider:not(:empty)::after {
    margin-left: .75em;
}

.switch-form-link {
    text-align: center;
    margin-top: 30px;
    font-size: 14px;
}

.switch-form-link a {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
}

.switch-form-link a:hover {
    text-decoration: underline;
}


/* Flip Animation Styles */

.form-flipper {
    position: relative;
    width: 100%;
    min-height: 560px;
    /* Initial height, will be adjusted by JS */
    perspective: 1500px;
    /* Adds depth to the 3D rotation */
}

.form-face {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Takes height from .form-flipper */
    -webkit-backface-visibility: hidden;
    /* For Safari */
    backface-visibility: hidden;
    /* Hides the back of the element during flip */
    transition: transform 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    /* Smooth elastic transition */
    /* overflow-y: auto; If content exceeds height, but JS should manage height */
}

.form-front {
    /* Login form */
    transform: rotateY(0deg);
    z-index: 2;
    /* Front face is initially on top */
}

.form-back {
    /* Sign-up form */
    transform: rotateY(180deg);
    z-index: 1;
    /* Back face is initially hidden and behind */
}


/* State when the flipper is active (sign-up form visible) */

.form-flipper.is-flipped .form-front {
    transform: rotateY(-180deg);
    /* Flip front to back */
    z-index: 1;
}

.form-flipper.is-flipped .form-back {
    transform: rotateY(0deg);
    /* Flip back to front */
    z-index: 2;
}


/* Terms and conditions styling */

.terms-group {
    font-size: 13px;
    display: flex;
    align-items: flex-start;
    /* Align checkbox with first line of text */
    margin-bottom: 25px;
}

.terms-group input[type="checkbox"] {
    margin-top: 3px;
    /* Align checkbox better with text */
    margin-right: 10px;
    flex-shrink: 0;
    /* Prevent checkbox from shrinking */
}

.terms-group label {
    font-weight: normal;
    color: var(--text-color-light);
    display: inline;
    /* For label to flow with text */
}

.terms-group label a {
    color: var(--primary-color);
    text-decoration: none;
}

.terms-group label a:hover {
    text-decoration: underline;
}


/* Responsive adjustments */

@media (max-width: 991px) {
    /* Medium devices (tablets, less than 992px) */
    .auth-container {
        flex-direction: column;
        width: 100%;
        max-width: 500px;
        /* Max width for stacked layout */
        margin: 30px auto;
    }
    .branding-panel {
        min-height: 250px;
        /* Give some space */
        padding: 40px 30px;
        border-radius: 0 0 12px 12px;
        /* Adjust border radius for stacked */
    }
    .form-panel {
        padding: 30px;
        border-radius: 12px 12px 0 0;
        /* Adjust border radius for stacked */
    }
    .form-flipper {
        min-height: 580px;
        /* Adjust for potentially taller forms on mobile */
    }
    .branding-panel h1 {
        font-size: 24px;
    }
    .branding-panel p {
        font-size: 15px;
    }
}

@media (max-width: 575px) {
    /* Small devices (landscape phones, 576px and down) */
    .form-panel {
        padding: 30px 20px;
    }
    .form-face h2 {
        font-size: 22px;
    }
    .form-face .subtitle {
        font-size: 13px;
        margin-bottom: 20px;
    }
    .btn {
        font-size: 15px;
        padding: 11px;
    }
    .form-flipper {
        min-height: 620px;
        /* Further adjust for potentially taller forms on mobile */
    }
}


/* Error and Success Block Styles */

.error-block,
.success-block {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.error-block {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.success-block {
    background-color: #d1e7dd;
    border: 1px solid #badbcc;
    color: #155724;
}

.error-icon,
.success-icon {
    margin-right: 12px;
    margin-top: 2px;
    font-size: 16px;
    flex-shrink: 0;
}

.error-icon {
    color: #dc3545;
}

.success-icon {
    color: #28a745;
}

.error-content,
.success-content {
    flex: 1;
}

.error-message,
.success-message {
    margin: 0;
    font-weight: 500;
}

.error-message:not(:last-child) {
    margin-bottom: 5px;
}


/* Animation for error/success blocks */

.error-block,
.success-block {
    animation: slideInFromTop 0.3s ease-out;
}

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


/* Ensure error blocks don't break the form layout */

@media (max-width: 575px) {
    .error-block,
    .success-block {
        font-size: 13px;
        padding: 12px;
    }
    .error-icon,
    .success-icon {
        font-size: 14px;
        margin-right: 10px;
    }
}

padding: 11px;

}
.form-flipper {
    min-height: 620px;
    /* Further adjust for potentially taller forms on mobile */
}

}

/* Error and Success Block Styles */
.error-block,
.success-block {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.error-block {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}
.success-block {
    background-color: #d1e7dd;
    border: 1px solid #badbcc;
    color: #155724;
}
.error-icon,
.success-icon {
    margin-right: 12px;
    margin-top: 2px;
    font-size: 16px;
    flex-shrink: 0;
}
.error-icon {
    color: #dc3545;
}
.success-icon {
    color: #28a745;
}
.error-content,
.success-content {
    flex: 1;
}
.error-message,
.success-message {
    margin: 0;
    font-weight: 500;
}
.error-message:not(:last-child) {
    margin-bottom: 5px;
}

/* Animation for error/success blocks */
.error-block,
.success-block {
    animation: slideInFromTop 0.3s ease-out;
}
@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure error blocks don't break the form layout */
@media (max-width: 575px) {
    .error-block,
    .success-block {
        font-size: 13px;
        padding: 12px;
    }
    .error-icon,
    .success-icon {
        font-size: 14px;
        margin-right: 10px;
    }
}
padding: 11px;

}
.form-flipper {
    min-height: 620px;
    /* Further adjust for potentially taller forms on mobile */
}

}

/* Error and Success Block Styles */
.error-block,
.success-block {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.error-block {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}
.success-block {
    background-color: #d1e7dd;
    border: 1px solid #badbcc;
    color: #155724;
}
.error-icon,
.success-icon {
    margin-right: 12px;
    margin-top: 2px;
    font-size: 16px;
    flex-shrink: 0;
}
.error-icon {
    color: #dc3545;
}
.success-icon {
    color: #28a745;
}
.error-content,
.success-content {
    flex: 1;
}
.error-message,
.success-message {
    margin: 0;
    font-weight: 500;
}
.error-message:not(:last-child) {
    margin-bottom: 5px;
}

/* Animation for error/success blocks */
.error-block,
.success-block {
    animation: slideInFromTop 0.3s ease-out;
}
@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure error blocks don't break the form layout */
@media (max-width: 575px) {
    .error-block,
    .success-block {
        font-size: 13px;
        padding: 12px;
    }
    .error-icon,
    .success-icon {
        font-size: 14px;
        margin-right: 10px;
    }
}
padding: 11px;

}
.form-flipper {
    min-height: 620px;
    /* Further adjust for potentially taller forms on mobile */
}

}

/* Error and Success Block Styles */
.error-block,
.success-block {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.error-block {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}
.success-block {
    background-color: #d1e7dd;
    border: 1px solid #badbcc;
    color: #155724;
}
.error-icon,
.success-icon {
    margin-right: 12px;
    margin-top: 2px;
    font-size: 16px;
    flex-shrink: 0;
}
.error-icon {
    color: #dc3545;
}
.success-icon {
    color: #28a745;
}
.error-content,
.success-content {
    flex: 1;
}
.error-message,
.success-message {
    margin: 0;
    font-weight: 500;
}
.error-message:not(:last-child) {
    margin-bottom: 5px;
}

/* Animation for error/success blocks */
.error-block,
.success-block {
    animation: slideInFromTop 0.3s ease-out;
}
@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure error blocks don't break the form layout */
@media (max-width: 575px) {
    .error-block,
    .success-block {
        font-size: 13px;
        padding: 12px;
    }
    .error-icon,
    .success-icon {
        font-size: 14px;
        margin-right: 10px;
    }
}
* Ensure error blocks don't break the form layout */
 @media (max-width: 575px) {
    .error-block,
    .success-block {
        font-size: 13px;
        padding: 12px;
    }
    .error-icon,
    .success-icon {
        font-size: 14px;
        margin-right: 10px;
    }
}

}
.form-flipper {
    min-height: 620px;
    /* Further adjust for potentially taller forms on mobile */
}

}

/* Error and Success Block Styles */
.error-block,
.success-block {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.error-block {
    background-color: #fef2f2;
    /* Light red background */
    border: 1px solid #fecaca;
    /* Light red border */
    color: #991b1b;
    /* Dark red text for better contrast */
}
.success-block {
    background-color: #f0fdf4;
    /* Light green background */
    border: 1px solid #bbf7d0;
    /* Light green border */
    color: #166534;
    /* Dark green text for better contrast */
}
.error-icon,
.success-icon {
    margin-right: 12px;
    margin-top: 2px;
    font-size: 16px;
    flex-shrink: 0;
}
.error-icon {
    color: #dc2626;
    /* Updated to match new error color */
}
.success-icon {
    color: #059669;
    /* Updated to match new success color */
}
.error-content,
.success-content {
    flex: 1;
}
.error-message,
.success-message {
    margin: 0;
    font-weight: 500;
}
.error-message:not(:last-child) {
    margin-bottom: 5px;
}

/* Animation for error/success blocks */
.error-block,
.success-block {
    animation: slideInFromTop 0.3s ease-out;
}
@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure error blocks don't break the form layout */
@media (max-width: 575px) {
    .error-block,
    .success-block {
        font-size: 13px;
        padding: 12px;
    }
    .error-icon,
    .success-icon {
        font-size: 14px;
        margin-right: 10px;
    }
}
font-size: 15px;
padding: 11px;

}
.form-flipper {
    min-height: 620px;
    /* Further adjust for potentially taller forms on mobile */
}

}

/* Error and Success Block Styles */
.error-block,
.success-block {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.error-block {
    background-color: #fef2f2;
    /* Light red background */
    border: 1px solid #fecaca;
    /* Light red border */
    color: #991b1b;
    /* Dark red text for better contrast */
}
.success-block {
    background-color: #f0fdf4;
    /* Light green background */
    border: 1px solid #bbf7d0;
    /* Light green border */
    color: #166534;
    /* Dark green text for better contrast */
}
.error-icon,
.success-icon {
    margin-right: 12px;
    margin-top: 2px;
    font-size: 16px;
    flex-shrink: 0;
}
.error-icon {
    color: #dc2626;
    /* Updated to match new error color */
}
.success-icon {
    color: #059669;
    /* Updated to match new success color */
}
.error-content,
.success-content {
    flex: 1;
}
.error-message,
.success-message {
    margin: 0;
    font-weight: 500;
}
.error-message:not(:last-child) {
    margin-bottom: 5px;
}

/* Animation for error/success blocks */
.error-block,
.success-block {
    animation: slideInFromTop 0.3s ease-out;
}
@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure error blocks don't break the form layout */
@media (max-width: 575px) {
    .error-block,
    .success-block {
        font-size: 13px;
        padding: 12px;
    }
    .error-icon,
    .success-icon {
        font-size: 14px;
        margin-right: 10px;
    }
}
padding: 11px;

}
.form-flipper {
    min-height: 620px;
    /* Further adjust for potentially taller forms on mobile */
}

}

/* Error and Success Block Styles */
.error-block,
.success-block {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.error-block {
    background-color: #fef2f2;
    /* Light red background */
    border: 1px solid #fecaca;
    /* Light red border */
    color: #991b1b;
    /* Dark red text for better contrast */
}
.success-block {
    background-color: #f0fdf4;
    /* Light green background */
    border: 1px solid #bbf7d0;
    /* Light green border */
    color: #166534;
    /* Dark green text for better contrast */
}
.error-icon,
.success-icon {
    margin-right: 12px;
    margin-top: 2px;
    font-size: 16px;
    flex-shrink: 0;
}
.error-icon {
    color: #dc2626;
    /* Updated to match new error color */
}
.success-icon {
    color: #059669;
    /* Updated to match new success color */
}
.error-content,
.success-content {
    flex: 1;
}
.error-message,
.success-message {
    margin: 0;
    font-weight: 500;
}
.error-message:not(:last-child) {
    margin-bottom: 5px;
}

/* Animation for error/success blocks */
.error-block,
.success-block {
    animation: slideInFromTop 0.3s ease-out;
}
@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure error blocks don't break the form layout */
@media (max-width: 575px) {
    .error-block,
    .success-block {
        font-size: 13px;
        padding: 12px;
    }
    .error-icon,
    .success-icon {
        font-size: 14px;
        margin-right: 10px;
    }
}
padding: 11px;

}
.form-flipper {
    min-height: 620px;
    /* Further adjust for potentially taller forms on mobile */
}

}

/* Error and Success Block Styles */
.error-block,
.success-block {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.error-block {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}
.success-block {
    background-color: #d1e7dd;
    border: 1px solid #badbcc;
    color: #155724;
}
.error-icon,
.success-icon {
    margin-right: 12px;
    margin-top: 2px;
    font-size: 16px;
    flex-shrink: 0;
}
.error-icon {
    color: #dc2626;
    /* Updated to match new error color */
}
.success-icon {
    color: #059669;
    /* Updated to match new success color */
}
.error-content,
.success-content {
    flex: 1;
}
.error-message,
.success-message {
    margin: 0;
    font-weight: 500;
}
.error-message:not(:last-child) {
    margin-bottom: 5px;
}

/* Animation for error/success blocks */
.error-block,
.success-block {
    animation: slideInFromTop 0.3s ease-out;
}
@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure error blocks don't break the form layout */
@media (max-width: 575px) {
    .error-block,
    .success-block {
        font-size: 13px;
        padding: 12px;
    }
    .error-icon,
    .success-icon {
        font-size: 14px;
        margin-right: 10px;
    }
}
padding: 11px;

}
.form-flipper {
    min-height: 620px;
    /* Further adjust for potentially taller forms on mobile */
}

}

/* Error and Success Block Styles */
.error-block,
.success-block {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.error-block {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}
.success-block {
    background-color: #d1e7dd;
    border: 1px solid #badbcc;
    color: #155724;
}
.error-icon,
.success-icon {
    margin-right: 12px;
    margin-top: 2px;
    font-size: 16px;
    flex-shrink: 0;
}
.error-icon {
    color: #dc3545;
}
.success-icon {
    color: #059669;
    /* Updated to match new success color */
}
.error-content,
.success-content {
    flex: 1;
}
.error-message,
.success-message {
    margin: 0;
    font-weight: 500;
}
.error-message:not(:last-child) {
    margin-bottom: 5px;
}

/* Animation for error/success blocks */
.error-block,
.success-block {
    animation: slideInFromTop 0.3s ease-out;
}
@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure error blocks don't break the form layout */
@media (max-width: 575px) {
    .error-block,
    .success-block {
        font-size: 13px;
        padding: 12px;
    }
    .error-icon,
    .success-icon {
        font-size: 14px;
        margin-right: 10px;
    }
}
padding: 11px;

}
.form-flipper {
    min-height: 620px;
    /* Further adjust for potentially taller forms on mobile */
}

}

/* Error and Success Block Styles */
.error-block,
.success-block {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.error-block {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}
.success-block {
    background-color: #d1e7dd;
    border: 1px solid #badbcc;
    color: #155724;
}
.error-icon,
.success-icon {
    margin-right: 12px;
    margin-top: 2px;
    font-size: 16px;
    flex-shrink: 0;
}
.error-icon {
    color: #dc3545;
}
.success-icon {
    color: #28a745;
}
.error-content,
.success-content {
    flex: 1;
}
.error-message,
.success-message {
    margin: 0;
    font-weight: 500;
}
.error-message:not(:last-child) {
    margin-bottom: 5px;
}

/* Animation for error/success blocks */
.error-block,
.success-block {
    animation: slideInFromTop 0.3s ease-out;
}
@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure error blocks don't break the form layout */
@media (max-width: 575px) {
    .error-block,
    .success-block {
        font-size: 13px;
        padding: 12px;
    }
    .error-icon,
    .success-icon {
        font-size: 14px;
        margin-right: 10px;
    }
}
padding: 11px;

}
.form-flipper {
    min-height: 620px;
    /* Further adjust for potentially taller forms on mobile */
}

}

/* Error and Success Block Styles */
.error-block,
.success-block {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.error-block {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}
.success-block {
    background-color: #d1e7dd;
    border: 1px solid #badbcc;
    color: #155724;
}
.error-icon,
.success-icon {
    margin-right: 12px;
    margin-top: 2px;
    font-size: 16px;
    flex-shrink: 0;
}
.error-icon {
    color: #dc3545;
}
.success-icon {
    color: #28a745;
}
.error-content,
.success-content {
    flex: 1;
}
.error-message,
.success-message {
    margin: 0;
    font-weight: 500;
}
.error-message:not(:last-child) {
    margin-bottom: 5px;
}

/* Animation for error/success blocks */
.error-block,
.success-block {
    animation: slideInFromTop 0.3s ease-out;
}
@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure error blocks don't break the form layout */
@media (max-width: 575px) {
    .error-block,
    .success-block {
        font-size: 13px;
        padding: 12px;
    }
    .error-icon,
    .success-icon {
        font-size: 14px;
        margin-right: 10px;
    }