/**
 * Vidau Login - Public CSS
 */

/* 按钮样式 */
.vidau-login-button {
    display: inline-block;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    cursor: pointer;
}

/* 按钮样式变体 */
.vidau-login-button-style-default {
    color: #212529;
    background-color: #f8f9fa;
    border-color: #f8f9fa;
}

.vidau-login-button-style-default:hover {
    color: #212529;
    background-color: #e2e6ea;
    border-color: #dae0e5;
}

.vidau-login-button-style-primary {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}

.vidau-login-button-style-primary:hover {
    color: #fff;
    background-color: #0069d9;
    border-color: #0062cc;
}

.vidau-login-button-style-secondary {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
}

.vidau-login-button-style-secondary:hover {
    color: #fff;
    background-color: #5a6268;
    border-color: #545b62;
}

.vidau-login-button-style-outline {
    color: #007bff;
    background-color: transparent;
    border-color: #007bff;
}

.vidau-login-button-style-outline:hover {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}

/* 按钮大小 */
.vidau-login-button-size-small {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
    border-radius: 0.2rem;
}

.vidau-login-button-size-medium {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
}

.vidau-login-button-size-large {
    padding: 0.75rem 1.5rem;
    font-size: 1.25rem;
    line-height: 1.5;
    border-radius: 0.3rem;
}

/* 登录模态框 */
.vidau-login-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    animation: vidau-login-fadeIn 0.3s;
}

@keyframes vidau-login-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes vidau-login-slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.vidau-login-modal-content {
    display: flex;
    margin: 10% auto;
    width: 100%;
    max-width: 732px;
    border-radius: 16px;
    box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.15);
    animation: vidau-login-slideIn 0.3s;
    overflow: hidden;
    height: 488px;
    justify-content: space-around;
    background: radial-gradient(62% 32% at 39% 0%, rgba(52, 241, 255, .084) 0%, rgba(52, 255, 241, 0) 99%), radial-gradient(55% 32% at 0% 0%, rgba(52, 89, 255, .255) 0%, rgba(52, 89, 255, .1) 49%, rgba(106, 59, 255, 0) 99%), radial-gradient(45% 28% at 100% 0%, rgba(255, 193, 3, .06) 0%, rgba(255, 193, 3, 0) 99%), #ffffff;
}

.vidau-login-modal-left {
    /*flex: 1;*/
    /*background: linear-gradient(135deg, #4e54c8, #8f94fb);*/
    padding: 24px 0 16px 24px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.vidau-login-modal-left-content {
    /* max-width: 300px; */
}
.vidau-login-modal-left img {
    width: 300px;
    height:440px ;
}

.vidau-login-modal-left h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.vidau-login-modal-left ul {
    list-style-type: none;
    padding: 0;
    margin: 20px 0;
}

.vidau-login-modal-left li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.vidau-login-modal-left li:before {
    content: '✓';
    display: inline-block;
    margin-right: 10px;
    color: white;
    font-weight: bold;
}

.vidau-login-modal-right {
    /* flex: 1; */
    padding: 40px 40px 40px 24px;
    position: relative;
}

.vidau-login-modal-close {
    position: absolute;
    top: 15px;
    right: 24px;
    color: #333;
    font-size: 32px;
    font-weight: normal;
    cursor: pointer;
    z-index: 1;
}

.vidau-login-modal-close:hover,
.vidau-login-modal-close:focus {
    color: #333;
    text-decoration: none;
    cursor: pointer;
}

#vidau-login-header {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 30px;
}

.vidau-login-back {
    position: absolute;
    left: 0;
    color: #4e54c8;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.vidau-login-back:hover {
    text-decoration: underline;
}

.vidau-login-modal-title {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

.vidau-login-form-group {
    margin-bottom: 20px;
    position: relative;
}

.vidau-login-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
    font-size: 14px;
}

.vidau-login-form-group input {
    width: 300px;
    padding: 16px 12px;
    border: 0px;
    background-color: #f4f4f4;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.vidau-login-form-group input:focus {
    border-color: #4e54c8;
    outline: none;
    box-shadow: 0 0 0 2px rgba(78, 84, 200, 0.2);
}

.vidau-login-form-group input::placeholder {
    color: #aaa;
}

.vidau-login-error {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

.vidau-login-form-actions {
    display: flex;
    flex-direction: column;
    margin-top: 30px;
}

.vidau-login-form-actions button {
    padding: 22px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
}

.vidau-login-submit {
    color: #fff;
    background: linear-gradient(270deg,#6a3bff 0%,#3459ff 99%);
    border: none;
    margin-bottom: 15px;
}

.vidau-login-submit:hover {
        background: linear-gradient(270deg,#8560ff 0%,#4f6fff 99%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.vidau-login-cancel {
    color: #666;
    background-color: transparent;
    border: none;
    text-decoration: underline;
    align-self: center;
}

.vidau-login-cancel:hover {
    color: #333;
}

.vidau-login-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: #888;
    font-size: 14px;
}

.vidau-login-divider:before,
.vidau-login-divider:after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #e0e0e0;
}

.vidau-login-divider:before {
    margin-right: 10px;
}

.vidau-login-divider:after {
    margin-left: 10px;
}

.vidau-login-social-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    font-size: 16px;
    background-color: #000000;
    color: #ffffff;
    font-weight: bold;
    margin-bottom: 15px;
    transition: all 0.2s ease;
}

.vidau-login-social-button:hover {
    background-color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.vidau-login-social-button .icon {
    margin-right: 10px;
    width: 25px;
    height: 36px;
}
.vidau-login-social-button .text {
    color: #ffffff;
}

.vidau-login-error {
    color: #dc3545;
    margin-top: 10px;
    font-size: 0.875rem;
    display: none;
}

.vidau-login-success {
    color: #28a745;
    margin-top: 10px;
    font-size: 0.875rem;
    display: none;
    background-color: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.2);
    border-radius: 4px;
    padding: 10px;
}

.vidau-login-button-disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* 动画 */
@keyframes vidau-login-fadeIn {
    from {opacity: 0}
    to {opacity: 1}
}

@keyframes vidau-login-slideIn {
    from {transform: translateY(-50px); opacity: 0;}
    to {transform: translateY(0); opacity: 1;}
}

.vidau-login-form-group input {
    width: 300px;
    padding: 16px 12px;
    border: 0px;
    background-color: #f4f4f4;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.vidau-login-code-inputs {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 16px;
}

.vidau-login-code-input {
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    text-align: center;
    font-size: 20px !important;
    font-weight: 600;
    color: #333;
    background-color: #f4f4f4 !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px !important;
    transition: all 0.2s ease-in-out;
}

.vidau-login-code-input:focus {
    border-color: #4e54c8 !important;
    box-shadow: 0 0 0 2px rgba(78, 84, 200, 0.2);
    outline: none;
}

#vidau-login-code-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 32px;
}

#vidau-login-code-group label {
    text-align: center;
    margin-bottom: 16px;
    color: #333;
    font-size: 16px;
    font-weight: 500;
}

.code-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(270deg, #6a3bff 0%, #3459ff 99%);
    margin-top: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.code-title {
    font-size: 24px;
    font-weight: 500;
    color: #1d2129;
    margin: 40px;
}
