/* Modern Clean Form Styles */

.srr-auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

.srr-modern-form-box {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05), 0 4px 6px rgba(0,0,0,0.02);
    width: 380px; 
    max-width: 100%;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.srr-modern-titlebar {
    background-color: #ffffff;
    color: #111827;
    padding: 20px 25px 15px 25px;
    font-weight: 700;
    font-size: 18px;
    border-bottom: 1px solid #f3f4f6;
    text-align: center;
}

.srr-xp-controls {
    display: none; /* Hide old close buttons for modern view */
}

.srr-xp-body {
    padding: 25px;
    position: relative;
    box-sizing: border-box;
    background: #ffffff;
}

/* Fields wrappers configured via absolute pos but styling modernized */
.srr-xp-field-wrap {
    position: absolute;
    width:calc(100% - 50px);
}

.srr-xp-field-wrap label {
    display: block;
    font-size: 13px;
    margin-bottom: 6px;
    color: #374151;
    font-weight: 500;
}

.srr-modern-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    background: #f9fafb;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    color: #111827;
}

.srr-modern-input:focus {
    border-color: #4f46e5;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.srr-modern-submit {
    padding: 12px 20px;
    background-color: #4f46e5;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s ease;
}

.srr-modern-submit:hover {
    background-color: #4338ca;
}

/* Fallback for Mobile Responsiveness */
@media screen and (max-width: 500px) {
    .srr-dynamic-auth-form {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    .srr-xp-field-wrap {
        position: relative !important; 
        left: 0 !important;
        top: 0 !important;
        width: 100%;
    }
}
