/* Authentication forms styles */

/* Base form container */
.rv2-loginForm {
    max-width: 400px;
    margin: 0 auto;
    margin-top: 20px;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding-bottom: 10px;
}

/* Form heading */
.rv2-loginForm h1 {
    text-align: center;
    margin-bottom: 25px;
    color: #333;
    font-weight: 600;
    font-size: 22px;
}

/* Form field container */
.rv2-pole {
    position: relative;
    margin-bottom: 20px;
}

/* Input fields */
.rv2-pole input[type="text"], 
.rv2-pole input[type="password"], 
.rv2-pole input[type="email"] {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.rv2-pole input:focus {
    outline: none;
    border-color: #007cba;
}

.rv2-pole input.rv2-error-field {
    border-color: #c62828 !important;
}

/* Validation errors - general */
.rv2-validation-error {
    color: #c62828;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

/* Validation errors - registration specific (with !important) */
.rv2-validation-error-registration {
    color: #c62828 !important;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

/* Email suggestions dropdown - registration only */
.rv2-email-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 1000;
    display: none;
    max-height: 400px;
    overflow-y: auto;
}

.rv2-suggestion-item {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
    font-size: 14px;
}

.rv2-suggestion-item:last-child {
    border-bottom: none;
}

.rv2-suggestion-item:hover {
    background-color: #f8f9fa;
}

.rv2-suggestion-item.active {
    background-color: #007cba;
    color: white;
}

.rv2-suggestion-item .rv2-domain {
    color: #666;
    font-weight: normal;
}

.rv2-suggestion-item.active .rv2-domain {
    color: rgba(255,255,255,0.8);
}

/* Password field wrapper */
.rv2-password-wrapper {
    position: relative;
}

.rv2-password-toggle {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
    font-size: 18px;
    user-select: none;
}

.rv2-password-toggle:hover {
    color: #007cba;
}

/* Submit button */
.rv2-submit {
    width: 100%;
    padding: 12px;
    background: #ffde3e;
    color: #222;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.rv2-submit:hover {
    background: #fcc50d;
}

.rv2-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Password reset link - login only */
.rv2-haslo {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 16px;
    background: #f8f9fa;
    color: #007cba;
    text-decoration: none;
    font-size: 13px;
    border-radius: 4px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.rv2-haslo:hover {
    background: #e9ecef;
    border-color: #007cba;
    text-decoration: none;
}

/* Login method tabs */
.rv2-login-options {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.rv2-login-tab {
    flex: 1;
    padding: 10px;
    background: #f5f5f5;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.rv2-login-tab.active {
    background: #007cba;
    color: white;
}

.rv2-login-method {
    display: none;
}

.rv2-login-method.active {
    display: block;
}

/* Passwordless info */
.rv2-passwordless-info {
    background: #e8f4fd;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #333;
}

/* Error messages */
.rv2-error {
    background: #ffebee;
    color: #c62828;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 14px;
}

/* Info messages - code verification only */
.rv2-info {
    background: #e8f4fd;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 25px;
    font-size: 14px;
    color: #333;
    text-align: center;
}

/* Email display - code verification only */
.rv2-email-display {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
    border: 1px solid #e9ecef;
}

.rv2-email-display .email {
    font-weight: 600;
    color: #007cba;
    font-size: 16px;
}

/* Code input container - code verification only */
.rv2-code-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.rv2-code-input {
    width: 50px;
    height: 60px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: #fff;
    color: #333;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: textfield;
    appearance: textfield;
}

.rv2-code-input:focus {
    outline: none;
    border-color: #007cba;
    background: #f8f9fa;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.rv2-code-input.error {
    border-color: #c62828;
    background: #ffebee;
}

.rv2-code-input::-webkit-outer-spin-button,
.rv2-code-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

/* Registration link section - login only */
.rv2-reg {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.rv2-reg a {
    color: #007cba;
    text-decoration: none;
}

.rv2-reg a:hover {
    text-decoration: underline;
}

/* Google login */
.rv2-google-login {
    margin-bottom: 20px;
    text-align: center;
}

.rv2-google-login button {
    width: 80%;
    background: #C74538;
    border: none;
    padding: 12px;
    color: #ffffff;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.rv2-google-login button:hover {
    background: #b23e32 !important;
}

/* Divider */
.rv2-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.rv2-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #ddd;
}

.rv2-divider span {
    background: white;
    padding: 0 15px;
    color: #666;
    font-size: 14px;
    position: relative;
    z-index: 1;
}

/* Bottom links and buttons */
.rv2-reg-bottom {
    text-align: center;
    font-size: 14px;
    color: #666;
}

.rv2-reg-bottom a {
    display: inline-block;
    padding: 12px 25px;
    background: #ffffff;
    color: #007cba;
    text-decoration: none;
    border-radius: 15px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    font-weight: 500;
    text-align: center;
    line-height: 1.3;
    max-width: 225px;
}

.rv2-reg-bottom a .question {
    display: block;
    font-size: 12px;
    color: #666;
    font-weight: 400;
    margin-bottom: 2px;
}

.rv2-reg-bottom a .answer {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #007cba;
}

.rv2-reg-bottom a:hover {
    background: #007cba;
    border-color: #007cba;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,124,186,0.2);
}

.rv2-reg-bottom a:hover .question {
    color: rgba(255,255,255,0.8);
}

.rv2-reg-bottom a:hover .answer {
    color: white;
}

.rv2-bottom-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 15px 0;
    max-width: 400px;
    margin: 0 auto;
}

/* Checkbox group - registration only */
.rv2-checkbox-group {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.rv2-checkbox-item {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.rv2-checkbox-item:last-child {
    margin-bottom: 0;
}

.rv2-checkbox-item.rv2-select-all {
    padding-bottom: 15px;
    margin-bottom: 5px;
}

.rv2-checkbox-item.rv2-select-all label {
    color: #333;
    font-weight: 550;
    font-size: 14px;
}

.rv2-select-required-separator {
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 20px !important;
    margin-bottom: 25px !important;
}

.rv2-checkbox-item input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.rv2-checkbox-item label {
    font-size: 11px;
    line-height: 1.4;
    color: #333;
    cursor: pointer;
}

.rv2-checkbox-item label a {
    color: #007cba;
    text-decoration: none;
}

.rv2-checkbox-item label a:hover {
    text-decoration: underline;
}

.rv2-required {
    color: #c62828;
    font-weight: bold;
}

.rv2-info-text {
    background: #fff3cd;
    padding: 12px;
    border-radius: 6px;
    margin: 15px 0;
    font-size: 14px;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Resend code section - code verification only */
.rv2-resend-container {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.rv2-resend-btn {
    background: none;
    border: none;
    color: #007cba;
    text-decoration: underline;
    cursor: pointer;
    font-size: 14px;
    padding: 5px 0;
}

.rv2-resend-btn:hover {
    color: #005a8b;
}

.rv2-resend-btn:disabled {
    color: #ccc;
    cursor: not-allowed;
    text-decoration: none;
}

.rv2-timer {
    color: #666;
    font-size: 12px;
    margin-top: 5px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .rv2-loginForm {
        width: 100%;
        max-width: none;
        padding: 20px;
        padding-bottom: 10px;
        border-radius: 0;
        box-shadow: none;
    }
    
    .rv2-pole input[type="text"], 
    .rv2-pole input[type="password"], 
    .rv2-pole input[type="email"] {
        padding: 16px 20px;
        font-size: 16px;
    }
    
    .rv2-login-tab {
        padding: 12px 8px;
        font-size: 13px;
    }
    
    .rv2-submit {
        padding: 15px;
        font-size: 16px;
    }

    .rv2-google-login button {
        padding: 15px;
        font-size: 16px;
    }
    
    .rv2-checkbox-group {
        padding: 15px;
    }
    
    .rv2-checkbox-item {
        gap: 10px;
    }

    .rv2-code-input {
        width: 45px;
        height: 55px;
        font-size: 22px;
    }
    
    .rv2-code-container {
        gap: 8px;
        margin: 20px 0;
    }
}

/* Switch to column layout for smaller screens */
@media (max-width: 360px) {
    .rv2-bottom-links {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        padding: 10px;
    }
    
    .rv2-reg-bottom {
        width: 80%;
    }
    
    .rv2-reg-bottom a {
        display: block;
        padding: 18px 25px;
        width: 100%;
        max-width: 100%;
    }

    .rv2-code-input {
        width: 40px;
        height: 50px;
        font-size: 20px;
    }
    
    .rv2-code-container {
        gap: 6px;
    }
}

/* Additional mobile style for code verification only */
.rv2-reg-bottom {
    margin-top: 20px;
}