/* --- Layout CSS moved to layout.css --- */

/* Premium White Card */
.cazp-form-container {
    background: #ffffff;
    padding: 45px 50px;
    border-radius: 28px;
    border-top: 6px solid #8b1d22;
    box-shadow:
        0 10px 25px rgba(26, 6, 8, 0.05),
        0 20px 48px rgba(26, 6, 8, 0.1);
    position: relative;
    overflow: hidden;
}

/* Subtle warm gradient wash on card */
.cazp-form-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(139, 29, 34, 0.015) 0%, transparent 40%);
    pointer-events: none;
}

/* Lock Icon */
.cazp-lock-icon-wrapper {
    text-align: center;
    margin-bottom: 18px;
}

.cazp-lock-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, #8b1d22 0%, #c0392b 100%);
    box-shadow:
        0 6px 16px rgba(139, 29, 34, 0.35),
        0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 24px;
    color: #fff;
}

/* Form Header */
.cazp-login-header {
    text-align: center;
    margin-bottom: 28px;
}

.cazp-login-header h2 {
    font-family: 'DM Serif Text', serif !important;
    font-size: 36px;
    font-weight: 800;
    color: #1a0608;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.cazp-login-header p {
    color: #8a7070;
    font-size: 14px;
    font-weight: 400;
}

/* Form Fields */
.cazp-modern-form .cazp-form-group {
    margin-bottom: 16px;
}

.cazp-modern-form label {
    display: none;
}

.cazp-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.cazp-input-icon {
    display: none;
}

.cazp-modern-form input[type="text"],
.cazp-modern-form input[type="password"] {
    width: 100%;
    height: 60px;
    background: #ebf2ff;
    /* Light blue background as in screenshot */
    border: 1.5px solid #d0d9e8;
    border-radius: 16px;
    padding: 0 50px 0 20px;
    font-size: 16px;
    color: #1a0608;
    transition: all 0.3s ease;
    font-family: inherit;
    outline: none;
}

.cazp-modern-form input::placeholder {
    color: #b89898;
}

.cazp-modern-form input:focus {
    background: #fff;
    border-color: #8b1d22;
    box-shadow:
        0 0 0 4px rgba(139, 29, 34, 0.1),
        0 4px 12px rgba(139, 29, 34, 0.08);
}

/* Password toggle */
.cazp-toggle-password {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    color: #b89898;
    cursor: pointer;
    font-size: 17px;
    padding: 5px;
    transition: color 0.3s;
}

.cazp-toggle-password:hover {
    color: #8b1d22;
}

/* Checkbox row */
.cazp-login-options {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    margin-top: 6px;
}

/* Custom Checkbox */
.cazp-checkbox-custom {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 28px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #6b4040;
    user-select: none;
}

.cazp-checkbox-custom input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    left: 0;
    height: 20px;
    width: 20px;
    background: #f5eaea;
    border-radius: 6px;
    border: 1.5px solid #d4a0a0;
    transition: all 0.2s;
}

.cazp-checkbox-custom:hover input~.checkmark {
    border-color: #8b1d22;
    background: #fdf0f0;
}

.cazp-checkbox-custom input:checked~.checkmark {
    background: #8b1d22;
    border-color: #8b1d22;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.cazp-checkbox-custom input:checked~.checkmark:after {
    display: block;
}

/* Sign In Button */
.cazp-modern-btn {
    width: 100%;
    height: 54px;
    background: linear-gradient(135deg, #6b1117 0%, #8b1d22 50%, #c0392b 100%);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: all 0.35s ease;

    position: relative;
    overflow: hidden;
    margin-bottom: 18px;
}

.cazp-modern-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s ease;
}

.cazp-modern-btn:hover::after {
    left: 100%;
}

.cazp-modern-btn:hover {
    transform: translateY(-2px);

}

.cazp-modern-btn:active {
    transform: translateY(0);
}

/* Footer row */
.cazp-form-footer {
    text-align: center;
    font-size: 14px;
    color: #8a7070;
}

.cazp-forgot-link {
    font-size: 14px;
    font-weight: 600;
    color: #8b1d22;
    text-decoration: none;
    margin-left: 4px;
    transition: color 0.3s;
}

.cazp-forgot-link:hover {
    color: #c0392b;

}

/* Error Message Styling */
.cazp-error-message {
    background: #fff5f5;
    border: 1px solid #f5c0c0;
    color: #c0392b;
    padding: 13px 18px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    font-size: 13px;
    font-weight: 500;
}

.cazp-success-message {
    background: #f0faf0;
    border: 1px solid #c0ebc0;
    color: #2e7d32;
    padding: 13px 18px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    font-size: 13px;
    font-weight: 500;
}

.cazp-error-message a {
    color: #8b1d22;

    font-weight: 700;
    margin-left: 5px;
    transition: color 0.3s;
}

.cazp-error-message a:hover {
    color: #c0392b;
}

/* Responsive Adjustments for Form ONLY */
@media (max-width: 600px) {
    .cazp-form-container {
        padding: 28px 22px;
    }

    .cazp-login-header h2 {
        font-size: 26px;
    }

    .cazp-modern-form input[type="text"],
    .cazp-modern-form input[type="password"] {
        height: 50px;
        font-size: 14px;
    }

    .cazp-modern-btn {
        height: 50px;
        font-size: 14px;
    }
}

@media (max-height: 800px) and (min-width: 993px) {
    .cazp-form-container {
        padding: 40px 35px;
    }

    .cazp-login-header {
        margin-bottom: 25px;
    }

    .cazp-modern-form input {
        height: 52px;
    }
}