.vsg-form-container {
    max-width: 900px;
    margin: 3rem auto;
    padding: 3rem;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    position: relative;
}

.vsg-logout-container {
    position: absolute;
    top: 2rem;
    right: 2rem;
}

.vsg-logout-btn {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: #f8f9fa;
    color: #666;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.vsg-logout-btn:hover {
    background: #e9ecef;
    color: #333;
    border-color: #ccc;
}

.vsg-google-login {
    text-align: center;
    padding: 3rem 1rem;
}

.vsg-google-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 32px;
    background: #fff;
    color: #333;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.vsg-google-btn:hover {
    background: #f8f9fa;
    border-color: #4285f4;
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.15);
    transform: translateY(-1px);
}

.vsg-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.vsg-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.vsg-section:last-of-type {
    margin-bottom: 0;
}

.vsg-section-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1.75rem;
    color: #1a1a1a;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid #4285f4;
    display: inline-block;
}

.vsg-form-group {
    margin-bottom: 1.25rem;
    position: relative;
}

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

.vsg-form-group .required {
    color: #d32f2f;
    margin-left: 4px;
}

.vsg-form-group input[type="text"],
.vsg-form-group input[type="email"],
.vsg-form-group input[type="tel"],
.vsg-form-group input[type="number"],
.vsg-form-group input[type="date"],
.vsg-form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    background: #fff;
    transition: all 0.3s ease;
}

.vsg-form-group input:focus,
.vsg-form-group select:focus {
    outline: none;
    border-color: #4285f4;
    box-shadow: 0 0 0 4px rgba(66, 133, 244, 0.1);
    background: #fff;
}

.vsg-form-group select {
    background: #fff;
    cursor: pointer;
}

.vsg-radio-group {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.vsg-radio-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 400;
    cursor: pointer;
}

.vsg-radio-group input[type="radio"] {
    cursor: pointer;
}

.vsg-suffix {
    position: absolute;
    right: 12px;
    top: 38px;
    color: #666;
    pointer-events: none;
}

.vsg-field-hint {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #666;
    font-style: italic;
}

.vsg-form-actions {
    margin-top: 2rem;
    text-align: center;
}

.vsg-submit-btn {
    background: linear-gradient(135deg, #4285f4 0%, #3367d6 100%);
    color: #fff;
    border: none;
    padding: 1.125rem 3rem;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.3);
    letter-spacing: 0.5px;
}

.vsg-submit-btn:hover {
    background: linear-gradient(135deg, #3367d6 0%, #2557c7 100%);
    box-shadow: 0 6px 25px rgba(66, 133, 244, 0.4);
    transform: translateY(-2px);
}

.vsg-submit-btn:active {
    transform: translateY(0);
}

.vsg-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s linear infinite;
}

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

.vsg-error {
    background: #ffebee;
    color: #c62828;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.vsg-success {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .vsg-form-container {
        padding: 1.5rem;
        margin: 1rem;
    }

    .vsg-logout-container {
        position: static;
        text-align: right;
        margin-bottom: 1rem;
    }

    .vsg-section-title {
        font-size: 1.1rem;
    }

    .vsg-form-group {
        margin-bottom: 1rem;
    }

    .vsg-radio-group {
        flex-direction: column;
        gap: 0.75rem;
    }

    .vsg-submit-btn {
        width: 100%;
        padding: 1rem;
    }

    /* Dark mode mobile styles */
    [data-theme="dark"] .vsg-form-container {
        background: #2b2b2b;
        color: #e0e0e0;
    }

    [data-theme="dark"] .vsg-section {
        background: #333333;
    }
}

@media (max-width: 480px) {
    .vsg-form-container {
        padding: 1rem;
        margin: 0.5rem;
        border-radius: 4px;
    }

    .vsg-google-btn {
        width: 100%;
        justify-content: center;
    }

    /* Dark mode mobile styles for small screens */
    [data-theme="dark"] .vsg-form-container {
        background: #2b2b2b;
        color: #e0e0e0;
    }

    [data-theme="dark"] .vsg-section {
        background: #333333;
    }
}

/* Dark Mode Styles */
[data-theme="dark"] .vsg-form-container {
    background: #2b2b2b;
    color: #e0e0e0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border-color: #444444;
}

[data-theme="dark"] .vsg-logout-btn {
    background: #333333;
    color: #e0e0e0;
    border-color: #555;
}

[data-theme="dark"] .vsg-logout-btn:hover {
    background: #1a1a1a;
    color: #e0e0e0;
    border-color: #777;
}

[data-theme="dark"] .vsg-google-btn {
    background: #1a1a1a;
    color: #e0e0e0;
    border-color: #555;
}

[data-theme="dark"] .vsg-google-btn:hover {
    background: #333333;
    border-color: #4285f4;
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.25);
}

[data-theme="dark"] .vsg-section {
    background: #333333;
}

[data-theme="dark"] .vsg-section-title {
    color: #e0e0e0;
}

[data-theme="dark"] .vsg-form-group label {
    color: #ccc;
}

[data-theme="dark"] .vsg-form-group .required {
    color: #ff6b6b;
}

[data-theme="dark"] .vsg-form-group input[type="text"],
[data-theme="dark"] .vsg-form-group input[type="email"],
[data-theme="dark"] .vsg-form-group input[type="tel"],
[data-theme="dark"] .vsg-form-group input[type="number"],
[data-theme="dark"] .vsg-form-group input[type="date"],
[data-theme="dark"] .vsg-form-group select {
    background: #1a1a1a;
    color: #e0e0e0;
    border-color: #555;
}

[data-theme="dark"] .vsg-form-group input:focus,
[data-theme="dark"] .vsg-form-group select:focus {
    background: #1a1a1a;
    border-color: #4285f4;
    box-shadow: 0 0 0 4px rgba(66, 133, 244, 0.15);
}

[data-theme="dark"] .vsg-form-group select {
    background: #1a1a1a;
}

[data-theme="dark"] .vsg-suffix {
    color: #999;
}

[data-theme="dark"] .vsg-field-hint {
    color: #999;
}

[data-theme="dark"] .vsg-error {
    background: #4d1b1b;
    color: #ff6b6b;
}

[data-theme="dark"] .vsg-success {
    background: #1b4d3e;
    color: #4caf50;
}