/* Login Page Styles - login-wed-lex1 prefix */
.login-wed-lex1-container {
    min-height: calc(100vh - 200px);
    background-color: #ffffff;
    position: relative;
    overflow: hidden;
    padding: 40px 0 0 0;
}

/* Decorative Images - Left and Right */
.login-wed-lex1-left-decor {
    position: absolute;
    left: 0;
    top: 0;
    width: auto;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.login-wed-lex1-right-decor {
    position: absolute;
    right: 0;
    top: 0;
    width: auto;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.login-wed-lex1-decor-image {
    width: auto;
    height: 100%;
    max-width: 200px;
    object-fit: contain;
    opacity: 0.6;
}

/* Decorative Background Elements */
.login-wed-lex1-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #B8D3D1;
    z-index: 1;
}

.login-wed-lex1-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #2F4F75;
    z-index: 1;
}

.login-wed-lex1-wrapper {
    min-height: 84vh;
    position: relative;
    z-index: 2;
    padding: 0 50px;
    max-width: 1300px;
    margin: 0 auto;
}

/* Title Section at Top */
.login-wed-lex1-title-section {
    width: 100%;
    text-align: center;
    padding: 25px 0;
    position: relative;
    z-index: 3;
    margin-bottom: 0;
}

.login-wed-lex1-row {
    min-height: auto;
    align-items: flex-start;
    margin: 0;
}

/* Left Section - Image */
.login-wed-lex1-image-section {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background-color: transparent;
    position: relative;
    padding: 0;
    padding-top: 0;
}

.login-wed-lex1-image-wrapper {
    width: 90%;
    min-height: 400px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    position: relative;
    margin: 0 auto;
}

.login-wed-lex1-image {
    width: 98%;
    height: 100%;
    object-fit: cover;
    border-radius: 29px;
    border: 2px solid #B8D3D1;
}

/* Right Section - Form */
.login-wed-lex1-form-section {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background-color: #ffffff;
    padding: 30px;
    position: relative;
}

.login-wed-lex1-form-wrapper {
    width: 100%;
    max-width: 500px;
    position: relative;
    margin: 0 auto;
}

/* Decorative Top Element */
.login-wed-lex1-decorative-top {
    text-align: center;
    margin-bottom: 10px;
    margin-top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-wed-lex1-text-decor {
    width: auto;
    height: 50px;
    max-width: 200px;
    object-fit: contain;
}

/* Title */
.login-wed-lex1-title {
    font-family: 'Volkhov', serif;
    font-size: 42px;
    font-weight: 700;
    color: #2F4F75;
    text-align: center;
    margin: 0;
    margin-bottom: 0;
    letter-spacing: 1px;
}

/* Form Styles */
.login-wed-lex1-form {
    width: 100%;
    margin: 0;
    padding: 0;
}

.login-wed-lex1-form-group {
    margin-bottom: 18px;
    width: 100%;
}

.login-wed-lex1-recaptcha-wrap {
    margin-bottom: 20px;
}
.login-wed-lex1-recaptcha-wrap .g-recaptcha {
    display: inline-block;
}

.login-wed-lex1-label {
    display: block;
    font-family: 'Nunito', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #333333;
    margin-bottom: 8px;
    line-height: 1.5;
}

.login-wed-lex1-required {
    color: #dc3545;
    margin-left: 3px;
    font-weight: 600;
}

.login-wed-lex1-input {
    width: 100%;
    padding: 12px 16px;
    font-family: 'Nunito', sans-serif;
    font-size: 15px;
    color: #333333;
    background-color: #E6F3FF;
    border: 1px solid #d0e7ff;
    border-radius: 8px;
    transition: all 0.3s ease;
    outline: none;
    box-sizing: border-box;
    display: block;
}

.login-wed-lex1-input::placeholder {
    color: #999999;
    font-weight: 400;
}

.login-wed-lex1-input:focus {
    border-color: #2F4F75;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(47, 79, 117, 0.1);
}

/* Password Toggle Icon */
.login-wed-lex1-password-wrapper {
    position: relative;
    width: 100%;
}

.login-wed-lex1-password-wrapper .login-wed-lex1-input {
    padding-right: 50px;
}

.login-wed-lex1-password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: #2F4F75;
    transition: color 0.3s ease;
    z-index: 10;
}

.login-wed-lex1-password-toggle:hover {
    color: #0055A5;
}

.login-wed-lex1-eye-icon {
    width: 20px;
    height: 20px;
    display: block;
}

/* Alert Messages */
.login-wed-lex1-alert {
    margin-bottom: 20px;
    padding: 12px 16px;
    border-radius: 8px;
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideDown 0.3s ease-out;
}

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

.login-wed-lex1-alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.login-wed-lex1-alert-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.login-wed-lex1-alert-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

/* Field-specific error messages */
.login-wed-lex1-form-group .login-wed-lex1-error-message {
    color: #dc3545;
    font-size: 13px;
    margin-top: 5px;
    font-family: 'Nunito', sans-serif;
    display: block;
}

.login-wed-lex1-input.is-invalid {
    border-color: #dc3545;
    background-color: #fff5f5;
}

/* Page Loader - Infinity Symbol Animation */
.login-wed-lex1-page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.login-wed-lex1-infinity-loader {
    width: 200px;
    height: 100px;
    position: relative;
}

.login-wed-lex1-infinity-svg {
    width: 100%;
    height: 100%;
}

.login-wed-lex1-infinity-path {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    animation: infinity-draw 1.5s linear infinite;
    filter: drop-shadow(0 0 4px rgba(47, 79, 117, 0.4));
}

@keyframes infinity-draw {
    0% {
        stroke-dashoffset: 300;
    }
    100% {
        stroke-dashoffset: -300;
    }
}

/* Forgot Password */
.login-wed-lex1-forgot-wrapper {
    text-align: right;
    margin-bottom: 20px;
    margin-top: -5px;
}

.login-wed-lex1-forgot-link {
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    color: #999999;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
}

.login-wed-lex1-forgot-link:hover {
    color: #2F4F75;
    text-decoration: underline;
}

/* Forgot / Reset password intro text */
.login-wed-lex1-forgot-intro {
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Read-only email on reset page */
.login-wed-lex1-input-readonly {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

/* Submit Button */
.login-wed-lex1-submit-btn {
    width: 100%;
    padding: 14px 24px;
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background-color: #2F4F75;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 18px;
    margin-top: 0;
    display: block;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.login-wed-lex1-submit-btn > * {
    position: relative;
    z-index: 2;
}

.login-wed-lex1-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.login-wed-lex1-submit-btn::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid #B8D3D1;
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    clip-path: polygon(0% 0%, 0% 0%, 0% 100%, 0% 100%);
    animation: wedding-button-border-draw 1.2s ease-out forwards;
    animation-play-state: paused;
}

.login-wed-lex1-submit-btn:hover {
    background-color: #1e3a5a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(47, 79, 117, 0.3);
}

.login-wed-lex1-submit-btn:hover::before {
    left: 100%;
}

.login-wed-lex1-submit-btn:hover::after {
    opacity: 1;
    animation-play-state: running;
    box-shadow: 0 0 15px rgba(184, 211, 209, 0.5);
}

.login-wed-lex1-submit-btn:active {
    transform: translateY(0);
}

/* Button Border Animation */
@keyframes wedding-button-border-draw {
    0% {
        clip-path: polygon(0% 0%, 0% 0%, 0% 100%, 0% 100%);
    }
    25% {
        clip-path: polygon(0% 0%, 100% 0%, 100% 0%, 0% 100%);
    }
    50% {
        clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
    }
    75% {
        clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
    }
    100% {
        clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
    }
}

/* Sign Up Link */
.login-wed-lex1-signup-wrapper {
    text-align: center;
}

.login-wed-lex1-signup-text {
    font-family: 'Nunito', sans-serif;
    font-size: 15px;
    color: #666666;
    margin: 0;
}

.login-wed-lex1-signup-link {
    color: #2F4F75;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.login-wed-lex1-signup-link:hover {
    color: #1e3a5a;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .login-wed-lex1-left-decor,
    .login-wed-lex1-right-decor {
        display: none;
    }

    .login-wed-lex1-wrapper {
        padding: 0 20px;
        max-width: 100%;
    }

    .login-wed-lex1-form-section {
        align-items: flex-start;
        padding: 30px 25px;
    }

    .login-wed-lex1-title-section {
        padding: 20px 0;
    }

    .login-wed-lex1-form-wrapper {
        max-width: 100%;
    }

    .login-wed-lex1-image-section {
        min-height: 400px;
    }

    .login-wed-lex1-image-wrapper {
        min-height: 400px;
    }

    .login-wed-lex1-title {
        font-size: 36px;
    }
}

@media (max-width: 767.98px) {
    .login-wed-lex1-left-decor,
    .login-wed-lex1-right-decor {
        display: none;
    }

    .login-wed-lex1-wrapper {
        padding: 0 15px;
        max-width: 100%;
    }

    .login-wed-lex1-form-section {
        align-items: flex-start;
        padding: 25px 18px;
    }

    .login-wed-lex1-title-section {
        padding: 20px 0;
    }

    .login-wed-lex1-title {
        font-size: 36px;
    }

    .login-wed-lex1-form-group {
        margin-bottom: 18px;
    }

    .login-wed-lex1-input {
        padding: 12px 14px;
    }

    .login-wed-lex1-image-section {
        min-height: 300px;
    }

    .login-wed-lex1-image-wrapper {
        min-height: 300px;
        padding: 25px;
    }

    .login-wed-lex1-form-section {
        padding: 30px 20px;
    }

    .login-wed-lex1-title {
        font-size: 32px;
        margin-bottom: 25px;
    }

    .login-wed-lex1-form-group {
        margin-bottom: 20px;
    }

    .login-wed-lex1-text-decor {
        height: 40px;
        max-width: 150px;
    }
}

@media (max-width: 575.98px) {
    .login-wed-lex1-title-section {
        padding: 15px 0;
    }

    .login-wed-lex1-title {
        font-size: 28px;
    }

    .login-wed-lex1-form-section {
        padding: 20px 15px;
    }

    .login-wed-lex1-input {
        padding: 12px 14px;
        font-size: 14px;
    }

    .login-wed-lex1-submit-btn {
        padding: 12px 20px;
        font-size: 15px;
    }

    .login-wed-lex1-text-decor {
        height: 35px;
        max-width: 120px;
    }

    .login-wed-lex1-form-group {
        margin-bottom: 16px;
    }

    .login-wed-lex1-label {
        font-size: 14px;
        margin-bottom: 6px;
    }
}
