/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB',
                 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    
    min-height: 100vh;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/bg_sso.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(2px);
    z-index: -1;
}

/* Login Container */
.login-container {
    width: 100%;
    max-width: 1400px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-box {
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 60px 80px;
    display: flex;
    gap: 80px;
    align-items: flex-start;
}

/* Left Content */
.content-left {
    flex: 1;
    max-width: 550px;
}

.content-left h2 {
    font-size: 24px;
    color: #090909;
    margin-bottom: 30px;
    font-weight: 600;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    line-height: 1.8;
}

.info-item .bullet {
    width: 11px;
    height: 11px;
    background: #0273d5;
    border-radius: 50%;
    margin-right: 15px;
    margin-top: 7px;
    flex-shrink: 0;
}

.info-item p {
    font-size: 16px;
    color: #090909;
    letter-spacing: 0.5px;
}

/* Right Content */
.content-right {
    flex: 1;
    max-width: 500px;
    text-align: center;
}

.content-right h1 {
    font-size: 36px;
    color: #000;
    margin-bottom: 30px;
    font-weight: 600;
    letter-spacing: 2px;
}


/* QR Code Container */
#qrcode-container {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 30px;
}

.qrcode-wrapper {
    text-align: center;
}

.qrcode-wrapper .qrcode-tip {
    margin-top: 20px;
    color: #4a4a4a;
    font-size: 14px;
    font-weight: 600;
}

#qrcode-image {
    width: 280px;
    height: 280px;
    display: block;
    margin: 0 auto;
}

/* Bottom Tip */
.bottom-tip {
    text-align: center;
    margin-top: 20px;
    font-size: 18px;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.bottom-tip .refresh-icon {
    font-size: 22px;
    color: #0273d5;
}

/* Loading Spinner */
.loading {
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    border: 4px solid #f3f3f3;
    
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading p {
    color: #666;
    font-size: 14px;
}

/* Status Message */
.status-message {
    padding: 15px;
    background: #f5f7fa;
    border-radius: 8px;
    margin-top: 20px;
}

#status-text {
    color: #606266;
    font-size: 14px;
}

/* Error and Expired Messages */
.error-message,
.expired-message {
    text-align: center;
}

.error-message p,
.expired-message p {
    color: #f56c6c;
    font-size: 16px;
    margin-bottom: 20px;
}

/* Buttons */
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    outline: none;
}

.btn-primary {
    background: #0273d5;
    color: white;
}

.btn-primary:hover {
    background: #397fcf;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(78, 205, 196, 0.4);
}

.btn-secondary {
    background: #909399;
    color: white;
}

.btn-secondary:hover {
    background: #82848a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(144, 147, 153, 0.4);
}


/* Success Page Styles */
.success-container {
    width: 100%;
    max-width: 600px;
    padding: 20px;
}

.success-box {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
    text-align: center;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #67c23a;
    color: white;
    font-size: 50px;
    line-height: 80px;
    border-radius: 50%;
    margin: 0 auto 20px;
}

.success-box h1 {
    font-size: 28px;
    color: #333;
    margin-bottom: 10px;
}

.success-message {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

/* User Info */
.user-info {
    background: #f5f7fa;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.avatar-container {
    margin-bottom: 20px;
}

.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.user-details {
    text-align: left;
}

.detail-item {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid #e4e7ed;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-item .label {
    width: 100px;
    color: #909399;
    font-size: 14px;
}

.detail-item .value {
    flex: 1;
    color: #606266;
    font-size: 14px;
    font-weight: 500;
}

/* Actions */
.actions {
    margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .login-box {
        flex-direction: column;
        gap: 40px;
        padding: 40px;
    }

    .content-left,
    .content-right {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .login-container {
        padding: 20px;
    }

    .login-box {
        padding: 30px 20px;
    }

    .content-left h2 {
        font-size: 20px;
    }

    .content-right h1 {
        font-size: 28px;
    }

    #qrcode-image {
        width: 220px;
        height: 220px;
    }

    #qrcode-container {
        min-height: 320px;
        padding: 20px;
    }

    .bottom-tip {
        font-size: 14px;
    }

    .success-box {
        padding: 30px 20px;
    }
}
