/* ===================================
   Signup Page Styles
   OAuth-based account creation
   =================================== */

.signup-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 10;
}

.signup-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 60px;
}

/* Card */
.signup-card {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 48px;
    width: 100%;
    max-width: 420px;
}

.signup-card.wide {
    max-width: 520px;
}

.signup-header {
    text-align: center;
    margin-bottom: 32px;
}

.signup-header h1 {
    font-size: 28px;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
}

.signup-header p {
    font-size: 15px;
    color: var(--text-secondary);
}

/* User Welcome (Step 2) */
.user-welcome {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 3px;
    /* margin-bottom: 16px; */
    justify-content: center;
}

.signup-header .btn-txt {
    text-align: left!important;
    padding: 0px!important;
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.user-avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 5px;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    font-weight: 100;
}

.user-welcome h2 {
    font-size: 20px;
    font-weight: 300;
    color: white;
    margin-bottom: 2px;
    text-align: left;
}

.user-email {
    font-size: 13px;
    color: var(--text-secondary);
    text-align: left;
}

.btn-text {
    background: none;
    border: none;
    color: var(--primary-light);
    font-size: 13px;
    cursor: pointer;
    padding: 0;
    transition: color 0.3s;
    float: left;
    padding-left: 65px;
}

.btn-text:hover {
    color: white;
    text-decoration: underline;
}

/* OAuth Buttons */
.oauth-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.oauth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.oauth-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.oauth-icon {
    width: 20px;
    height: 20px;
}

/* Google */
.oauth-btn.google {
    background: white;
    color: #333;
    border-color: #ddd;
}

.oauth-btn.google:hover:not(:disabled) {
    background: #f5f5f5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Apple */
.oauth-btn.apple {
    background: #000;
    color: white;
}

.oauth-btn.apple:hover:not(:disabled) {
    background: #1a1a1a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Microsoft */
.oauth-btn.microsoft {
    background: #2f2f2f;
    color: white;
}

.oauth-btn.microsoft:hover:not(:disabled) {
    background: #404040;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Processing State */
.signup-processing {
    text-align: center;
    padding: 20px;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--primary-light);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 12px;
}

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

.signup-processing p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Error State */
.signup-error {
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
}

.signup-error p {
    color: #ff6b6b;
    font-size: 14px;
    margin: 0;
}

/* Footer */
.signup-footer {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.signup-footer p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.signup-footer a {
    color: var(--primary-light);
    text-decoration: none;
}

.signup-footer a:hover {
    text-decoration: underline;
}

.signin-link {
    margin-top: 16px;
}

/* Form */
.signup-form {
    /* margin-top: 30px!important; */
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: white;
    margin-bottom: 8px;
    text-transform: unset;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: white;
    font-size: 15px;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.12);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Plan Options */
.plan-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.plan-option {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.plan-option:hover {
    background: rgba(255, 255, 255, 0.08);
}

.plan-option.selected {
    background: rgba(25, 118, 210, 0.15);
    border-color: var(--primary);
}

.plan-radio {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.plan-option.selected .plan-radio {
    border-color: var(--primary);
}

.radio-inner {
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
}

.plan-details {
    flex: 1;
}

.plan-name {
    font-size: 15px;
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
}

.plan-price {
    font-size: 18px;
    font-weight: 400;
    color: orange;
    margin-bottom: 4px;
}

.plan-price span {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-secondary);
}

.plan-desc {
    font-size: 13px;
    color: var(--text-secondary);
}

.plan-note {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 12px;
}

.plan-note a {
    color: var(--primary-light);
    text-decoration: none;
}

.plan-note a:hover {
    text-decoration: underline;
}

/* Submit Button */
.btn-full {
    width: 100%;
}

/* Footer Bar */
.signup-footer-bar {
    text-align: center;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.signup-footer-bar p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}

.signup-footer-bar a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
}

.signup-footer-bar a:hover {
    color: white;
}

/* Responsive */
@media (max-width: 480px) {
    .signup-card {
        padding: 32px 24px;
    }

    .signup-header h1 {
        font-size: 24px;
    }

    .oauth-btn {
        padding: 12px 16px;
        font-size: 14px;
    }

    .user-welcome {
        flex-direction: column;
        text-align: center;
    }

    .user-welcome h2,
    .user-email {
        text-align: center;
    }
}

