.otsuka-auth-container input.error,
.otsuka-auth-container select.error {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 1px #e74c3c !important;
}
/* Loading circle*/

.otsuka-auth-container .submit-btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.otsuka-auth-container .submit-btn.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}



.otsuka-auth-container {
    display: flex;
    align-content: center;
    justify-content: center;
}

.otsuka-auth-container * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.otsuka-auth-container body {
    font-family: "Montserrat", Sans-serif;
    background: #f8f9fa;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.otsuka-auth-container .container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 40px;
    width: 100%;
    max-width: 800px;
}

.otsuka-auth-container .logo-section {
    text-align: center;
    margin-bottom: 40px;
}

.otsuka-auth-container .logo {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.otsuka-auth-container .logo img {
    width: 20%;
    height: auto;
}

.otsuka-auth-container .logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    border-radius: 50%;
    position: relative;
}

.otsuka-auth-container .logo-icon::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: #e74c3c;
    border-radius: 50%;
}

.otsuka-auth-container .logo-text {
    font-size: 32px;
    color: #4a90e2;
    font-weight: 300;
    margin-left: 8px;
}

.otsuka-auth-container .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    justify-content: center;
}

.otsuka-auth-container .form-group {
    flex: 1;
    margin-bottom: 0;
}

.otsuka-auth-container label {
    display: block;
    margin-bottom: 8px;
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.otsuka-auth-container .required {
    color: #e74c3c;
}

.otsuka-auth-container input,
.otsuka-auth-container select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    transition: all 0.2s ease;
    color: #333;
}

.otsuka-auth-container input:focus,
.otsuka-auth-container select:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.otsuka-auth-container input::placeholder,
.otsuka-auth-container select option[value=""] {
    color: #adb5bd;
}

.otsuka-auth-container select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.otsuka-auth-container .password-group {
    position: relative;
}

.otsuka-auth-container .password-toggle {
    position: absolute;
    right: 12px;
    top: 47.5px !important;
    transform: translateY(-50%) !important;
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    font-size: 24px;
    padding: 4px;
}

.otsuka-auth-container .password-toggle:hover {
    color: #4a90e2;
}

.otsuka-auth-container .submit-btn {
    width: 100%;
    padding: 14px;
    background: #4a90e2;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 16px;
}

.otsuka-auth-container .submit-btn:hover {
    background: #357abd;
    transform: translateY(-1px);
}

.otsuka-auth-container .submit-btn:active {
    transform: translateY(0);
}

.otsuka-auth-container .error-message {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.otsuka-auth-container .toggle-form {
    text-align: center;
    margin-top: 20px;
    color: #666;
}

.otsuka-auth-container .toggle-form a {
    color: #4a90e2;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
}

.otsuka-auth-container .toggle-form a:hover {
    text-decoration: underline;
}

.otsuka-auth-container .password-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
}

.otsuka-auth-container .password-toggle-icon {
    vertical-align: middle;
}

/* Form visibility control */
.otsuka-auth-container .login-form {
    display: block;
}

.otsuka-auth-container .registration-form {
    display: none;
}

.otsuka-auth-container.show-registration .login-form {
    display: none;
}

.otsuka-auth-container.show-registration .registration-form {
    display: block;
}

@media (max-width: 768px) {
    .otsuka-auth-container .container {
        padding: 30px 20px;
        margin: 10px;
        width: 95%;
    }

    .otsuka-auth-container .logo img {
        width: 40%;
        height: auto;
    }

    .otsuka-auth-container .logo-text {
        font-size: 28px;
    }

    .otsuka-auth-container .form-row {
        flex-direction: column;
        gap: 24px;
    }
}
