:root{
    --second-color: #0220b6;
    --second-color-hover: #031fd3;
}
.resana-auth-container {
    box-shadow: 0 0 5px #c6c0c0;
    padding: 30px;
    width: 450px;
    margin: 5% auto;
    border-radius: 7px;
}
.error-message {
    color: #ba0303;
    padding: 5px;
    border-right: 2px solid #ba0303;
    font-size: 14px;
}
.resana-auth-error {
    background-color: #ff5252;
    color: white;
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    display: none;
    text-align: right;
    font-size: 14px;
}

.resana-auth-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #d6cdb2;
}

.resana-auth-wrapper {
    padding: 20px 0;
    min-height: calc(100vh - 200px);
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 5;
    margin: 100px auto;
}

.resana-auth-form {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.registration-fields {
    margin-bottom: 20px;
}

.form-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
}

.message-container {
    margin-bottom: 20px;
}

.error-message, .success-message {
    padding: 12px 15px;
    margin-bottom: 10px;
    border-radius: 4px;
    display: none;
}

.error-message {
    background-color: #fff3f3;
    border: 1px solid #ffcdd2;
    color: #f44336;
}

.success-message {
    background-color: #e8f5e9;
    border: 1px solid #a5d6a7;
    color: #4caf50;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    /*background: rgba(255, 255, 255, 0.05);
    color: #fff;*/
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    border-color: #ffe17e;
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 225, 126, 0.1);
}

.form-group input:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.phone-input-group, .verification-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.phone-input-group input, .verification-input-group input {
    flex: 1;
}

.button {
    background-color: #ffe17e;
    color: #000;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 120px;
    text-align: center;
}

.button:hover {
    background-color: #c7ab4a;
    color: #000;
}

.button:disabled {
    background-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
}

.verification-button, .verify-button {
    white-space: nowrap;
}

.verification-code-container {
    margin-bottom: 10px;
}

.verification-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.timer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.timer {
    display: inline-block;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    text-align: center;
}

.resend-button {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    margin: 0 auto;
}

.resend-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: blue;
}

.form-hint {
    color: #7a7777;
    font-size: 12px;
    margin-top: 4px;
}

.required {
    color: #f44336;
    margin-right: 4px;
}

.submit-button {
    width: 100%;
    margin-top: 20px;
    padding: 14px;
    font-size: 16px;
}

.form-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
}

.form-footer a {
    color: #ffe17e;
    text-decoration: none;
    font-weight: 500;
}

.form-footer a:hover {
    color: #c7ab4a;
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: #eee;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.form-content {
    flex: 1;
}

.form-footer {
    margin-top: auto;
    text-align: center;
    color: #2d2d2d;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Form validation styles */
.form-group input.error {
    border-color: #f44336;
    background-color: rgba(244, 67, 54, 0.05);
}

.form-group input.error:focus {
    box-shadow: 0 0 0 2px rgba(244, 67, 54, 0.1);
}

.form-group input:invalid {
    border-color: #f44336;
}

.form-group input:invalid:focus {
    box-shadow: 0 0 0 2px rgba(244, 67, 54, 0.1);
}

/* Custom validation message */
.form-group input:invalid + .validation-message {
    display: block;
    color: #f44336;
    font-size: 12px;
    margin-top: 5px;
}

/* Error shake animation */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.form-group input.error,
.form-group input:invalid {
    animation: shake 0.5s ease-in-out;
}

/* Error message styles */
.error-message {
    background-color: rgba(244, 67, 54, 0.1);
    border: 1px solid #f44336;
    color: #f44336;
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 14px;
    display: none;
    animation: shake 0.5s ease-in-out;
}

.success-message {
    background-color: rgba(76, 175, 80, 0.1);
    border: 1px solid #4caf50;
    color: #4caf50;
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 14px;
    display: none;
}

.validation-message {
    display: none;
    color: #f44336;
    font-size: 12px;
    margin-top: 5px;
    margin-bottom: 5px;
}

.form-group input:invalid {
    border-color: #f44336;
}

.form-group input.error {
    border-color: #f44336;
}

.form-group.has-error .validation-message {
    display: block;
}

.form-group.has-error input {
    border-color: #f44336;
    margin-bottom: 5px;
}

/* Error shake animation */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.form-group.has-error .validation-message {
    animation: shake 0.5s ease-in-out;
}
.tab-button {
    flex: 1;
    padding: 10px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: all 0.3s ease;
}

.tab-button.active {
    color: var(--second-color);
    border-bottom: 3px solid var(--second-color);
    margin-bottom: -2px;

    /*color: #2196F3;*/
    /*border-bottom: 2px solid #2196F3;*/
}

.resana-auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-hint {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

.submit-button {
    width: 100%;
    padding: 10px;
    background: var(--second-color);
    /*background: #007bff;*/
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.submit-button:hover {
    /*background: #0056b3;*/
    background: var(--second-color-hover);
}

.submit-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.form-footer {
    margin-top: 15px;
    text-align: center;
}

.form-footer a {
    color: var(--second-color);
    /*color: #007bff;*/
    text-decoration: none;
}

.form-footer a:hover {
    text-decoration: underline;
}

.separator {
    margin: 0 10px;
    color: #eee;
}
#reset-password-step1 .timer {
    position: relative;
    bottom: -16px;
}
.verification-group {
    position: relative;
}

#verification-code {
    /*text-align: center;
    letter-spacing: 4px;
    font-size: 18px;*/
}

.timer {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #666;
}

.required {
    color: #dc3545;
}

.timer {
    left: auto;
    right: 10px;
}

/* Loading Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.submit-button:disabled::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 8px;
    border: 2px solid #ccc;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    vertical-align: middle;
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    .resana-auth-container {
        max-width: 100%;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
    }
} 