.login-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1rem;
}

.login-container {
    width: 100%;
    max-width: 450px;
}

.login-box {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.login-header {
    padding: 6px 6px 3px;
    text-align: center;
    background: linear-gradient(135deg, #fff5f0 0%, #ffffff 100%);
    color: #000;
}

.login-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-logo-img {
    max-width: 120px;
    max-height: 60px;
    height: auto;
    width: auto;
    object-fit: contain;
    opacity: 1;
}

.login-logo .custom-logo-link {
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-logo .custom-logo-link img {
    max-width: 120px;
    max-height: 60px;
    height: auto;
    width: auto;
    object-fit: contain;
    opacity: 1;
}

.login-logo-text {
    font-size: 1.5rem;
    font-weight: 600;
    opacity: 1;
    color: #000;
}

.login-title {
    margin: 0 0 0.5rem;
    font-size: 1.75rem;
    font-weight: 600;
    color: #000;
}

.login-desc {
    margin: 0;
    font-size: 0.9rem;
    opacity: 1;
    color: #333;
}

.login-body {
    padding: 2rem;
}

.login-message {
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    border-radius: 6px;
    font-size: 0.875rem;
}

.login-message.error {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.login-message.success {
    background: #efe;
    color: #3c3;
    border: 1px solid #cfc;
}

.signin-form {
    margin: 0;
}

.form-row {
    margin-bottom: 1.25rem;
}

.form-row:last-child {
    margin-bottom: 0;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #333;
}

.input-box {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1rem;
    width: 16px;
    height: 16px;
    color: #999;
    pointer-events: none;
    z-index: 1;
    flex-shrink: 0;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9375rem;
    transition: all 0.2s;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #ff6600;
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
}

.form-input:focus + .input-icon,
.input-box:focus-within .input-icon {
    color: #ff6600;
}

.verify-code-row {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.code-input {
    flex: 1;
}

.code-image-box {
    flex-shrink: 0;
    position: relative;
    pointer-events: auto !important;
}

.code-image {
    width: 100px;
    height: 43px;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    display: block;
    transition: opacity 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    pointer-events: auto !important;
    position: relative;
    z-index: 1;
}

.code-image:hover {
    border-color: #ff6600;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.code-image:active {
    transform: scale(0.98);
}

.captcha-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 0.75rem;
    color: #ff6600;
    z-index: 2;
    pointer-events: none;
}

.options-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #666;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.forgot-link {
    font-size: 0.875rem;
    color: #ff6600;
    text-decoration: none;
}

.forgot-link:hover {
    text-decoration: none;
}

.submit-row {
    margin-bottom: 1.5rem;
}

.submit-button {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, #ff6600 0%, #ff8533 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.submit-button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.3);
}

.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.footer-row {
    text-align: center;
    font-size: 0.875rem;
    color: #666;
}

.register-link {
    color: #ff6600;
    text-decoration: none;
    font-weight: 500;
    margin-left: 0.5rem;
}

.register-link:hover {
    text-decoration: none;
}

@media (max-width: 768px) {
    .login-page {
        padding: 6px;
    }
    
    .login-header {
        padding: 1.5rem 1.5rem 0.75rem;
    }
    
    .login-logo-img,
    .login-logo .custom-logo-link img {
        max-width: 100px;
        max-height: 50px;
    }
    
    .login-logo-text {
        font-size: 1.25rem;
    }
    
    .login-body {
        padding: 1.5rem;
    }
    
    .verify-code-row {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
    }
    
    .code-image {
        width: 90px;
        height: 43px;
        flex-shrink: 0;
    }
}

