/**
 * BittyPress Frontend Login - Styles
 * Clean, modern, white design
 */

/* Container */
.btty-form-container {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

/* Form Box */
.btty-form-box {
    max-width: 460px;
    margin: 0 auto;
    background: #fff;
    padding: 48px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btty-form-box-small {
    max-width: 400px;
}

/* Title */
.btty-form-title {
    font-size: 28px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 8px 0;
    text-align: center;
}

.btty-form-description {
    color: #64748b;
    font-size: 14px;
    text-align: center;
    margin: 0 0 32px 0;
    line-height: 1.6;
}

/* Messages */
.btty-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.5;
}

.btty-message.btty-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.btty-message.btty-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.btty-message.btty-info {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* Google Sign-In */
.btty-google-signin {
    margin-bottom: 24px;
}

.btty-google-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 12px 24px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #1e293b;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btty-google-button:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btty-google-button svg {
    flex-shrink: 0;
}

/* Divider */
.btty-divider {
    position: relative;
    text-align: center;
    margin: 24px 0;
}

.btty-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e2e8f0;
}

.btty-divider span {
    position: relative;
    display: inline-block;
    padding: 0 12px;
    background: #fff;
    color: #64748b;
    font-size: 13px;
}

/* Form */
.btty-form {
    margin-top: 24px;
}

.btty-form-group {
    margin-bottom: 20px;
}

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

.btty-form-group input[type="text"],
.btty-form-group input[type="email"],
.btty-form-group input[type="password"],
.btty-form-group input[type="url"] {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    color: #1e293b;
    background: #fff;
    transition: all 0.2s;
    box-sizing: border-box;
}

.btty-form-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.btty-help-text {
    display: block;
    margin-top: 6px;
    color: #64748b;
    font-size: 13px;
}

/* Form Row */
.btty-form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

/* Checkbox */
.btty-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

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

.btty-checkbox span {
    color: #475569;
    font-size: 14px;
}

/* Link */
.btty-link {
    color: #3b82f6;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.btty-link:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* Button */
.btty-button {
    display: inline-block;
    width: 100%;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    box-sizing: border-box;
}

.btty-button-primary {
    background: #3b82f6;
    color: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btty-button-primary:hover {
    background: #2563eb;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btty-button-secondary {
    background: #fff;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.btty-button-secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

/* Form Footer */
.btty-form-footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #f1f5f9;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

/* Account Page */
.btty-account-container {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 20px;
}

.btty-account-title {
    font-size: 32px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 32px 0;
}

.btty-account-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.btty-account-box {
    background: #fff;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btty-account-box h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
}

/* Account Info */
.btty-account-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.btty-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.btty-info-row:last-child {
    border-bottom: none;
}

.btty-info-label {
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
}

.btty-info-value {
    color: #1e293b;
    font-size: 14px;
    font-weight: 500;
}

/* Connected Accounts */
.btty-connected-account {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btty-connected-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #64748b;
    font-size: 14px;
}

.btty-connected-item.btty-connected-active {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.btty-connected-item svg {
    flex-shrink: 0;
}

/* Account Actions */
.btty-account-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
}

.btty-account-actions .btty-button {
    width: auto;
    min-width: 140px;
}

/* Responsive */
@media (max-width: 640px) {
    .btty-form-box {
        padding: 32px 24px;
    }
    
    .btty-form-title {
        font-size: 24px;
    }
    
    .btty-form-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .btty-account-grid {
        grid-template-columns: 1fr;
    }
    
    .btty-account-box {
        padding: 24px;
    }
    
    .btty-info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}