/**
 * SigmaNews Accounts - Frontend Styles
 */

/* CSS Variables */
:root {
    --sigmanews-primary: #1a365d;
    --sigmanews-primary-hover: #2c5282;
    --sigmanews-success: #38a169;
    --sigmanews-warning: #d69e2e;
    --sigmanews-danger: #e53e3e;
    --sigmanews-gray-50: #f7fafc;
    --sigmanews-gray-100: #edf2f7;
    --sigmanews-gray-200: #e2e8f0;
    --sigmanews-gray-300: #cbd5e0;
    --sigmanews-gray-400: #a0aec0;
    --sigmanews-gray-500: #718096;
    --sigmanews-gray-600: #4a5568;
    --sigmanews-gray-700: #2d3748;
    --sigmanews-gray-800: #1a202c;
    --sigmanews-radius: 8px;
    --sigmanews-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --sigmanews-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Form container */
.sigmanews-form-container {
    max-width: 440px;
    margin: 40px auto;
    padding: 0 20px;
}

.sigmanews-form-header {
    text-align: center;
    margin-bottom: 30px;
}

.sigmanews-form-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--sigmanews-gray-800);
    margin: 0 0 8px;
}

.sigmanews-form-header p {
    color: var(--sigmanews-gray-500);
    margin: 0;
    font-size: 15px;
}

/* Form */
.sigmanews-form {
    background: #fff;
    padding: 32px;
    border-radius: var(--sigmanews-radius);
    box-shadow: var(--sigmanews-shadow-lg);
    border: 1px solid var(--sigmanews-gray-200);
}

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

.sigmanews-form-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--sigmanews-gray-700);
    margin-bottom: 6px;
    font-size: 14px;
}

.sigmanews-info-icon {
    cursor: help;
    font-size: 14px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.sigmanews-info-icon:hover {
    opacity: 1;
}

.sigmanews-form-group input[type="text"],
.sigmanews-form-group input[type="email"],
.sigmanews-form-group input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    border: 2px solid var(--sigmanews-gray-200);
    border-radius: 6px;
    transition: all 0.2s;
    box-sizing: border-box;
}

.sigmanews-form-group input:focus {
    outline: none;
    border-color: var(--sigmanews-primary);
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

.sigmanews-form-group input::placeholder {
    color: var(--sigmanews-gray-400);
}

.sigmanews-field-hint {
    display: block;
    font-size: 12px;
    color: var(--sigmanews-gray-500);
    margin-top: 5px;
}

/* Checkbox */
.sigmanews-checkbox-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 400;
    cursor: pointer;
}

.sigmanews-checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--sigmanews-primary);
}

/* Button */
.sigmanews-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.sigmanews-btn-primary {
    width: 100%;
    background: var(--sigmanews-primary);
    color: #fff;
}

.sigmanews-btn-primary:hover {
    background: var(--sigmanews-primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--sigmanews-shadow);
}

.sigmanews-btn-primary:disabled {
    background: var(--sigmanews-gray-400);
    cursor: not-allowed;
    transform: none;
}

.sigmanews-btn-secondary {
    background: var(--sigmanews-gray-100);
    color: var(--sigmanews-gray-700);
}

.sigmanews-btn-secondary:hover {
    background: var(--sigmanews-gray-200);
}

/* Messages */
.sigmanews-form-message {
    margin-bottom: 15px;
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 14px;
    display: none;
}

.sigmanews-form-message.sigmanews-error {
    display: block;
    background: #fed7d7;
    color: #c53030;
    border: 1px solid #fc8181;
}

.sigmanews-form-message.sigmanews-success {
    display: block;
    background: #c6f6d5;
    color: #276749;
    border: 1px solid #68d391;
}

.sigmanews-message {
    padding: 15px 20px;
    border-radius: var(--sigmanews-radius);
    font-size: 14px;
}

.sigmanews-message a {
    color: inherit;
    font-weight: 600;
}

.sigmanews-info {
    background: #e1f0ff;
    color: #0a4b78;
    border: 1px solid #90cdf4;
}

.sigmanews-warning {
    background: #fefcbf;
    color: #744210;
    border: 1px solid #f6e05e;
}

/* Form footer */
.sigmanews-form-footer {
    text-align: center;
    margin-top: 24px;
}

.sigmanews-form-footer p {
    margin: 8px 0;
    color: var(--sigmanews-gray-600);
    font-size: 14px;
}

.sigmanews-form-footer a {
    color: var(--sigmanews-primary);
    font-weight: 600;
    text-decoration: none;
}

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

/* Verification notice */
.sigmanews-verification-notice {
    margin-top: 24px;
    padding: 20px;
    background: var(--sigmanews-gray-50);
    border: 1px solid var(--sigmanews-gray-200);
    border-radius: var(--sigmanews-radius);
}

.sigmanews-verification-notice h4 {
    margin: 0 0 8px;
    font-size: 14px;
    color: var(--sigmanews-gray-700);
}

.sigmanews-verification-notice p {
    margin: 0;
    font-size: 13px;
    color: var(--sigmanews-gray-500);
    line-height: 1.5;
}

/* Account page */
.sigmanews-account-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 0 20px;
}

.sigmanews-account-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.sigmanews-account-header h2 {
    margin: 0;
    font-size: 28px;
    color: var(--sigmanews-gray-800);
}

/* Status card */
.sigmanews-account-status {
    margin-bottom: 24px;
}

.sigmanews-status-card {
    background: #fff;
    padding: 20px;
    border-radius: var(--sigmanews-radius);
    box-shadow: var(--sigmanews-shadow);
    border: 1px solid var(--sigmanews-gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sigmanews-status-label {
    font-size: 14px;
    color: var(--sigmanews-gray-500);
}

.sigmanews-status-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.sigmanews-status-verified {
    background: #c6f6d5;
    color: #276749;
}

.sigmanews-status-pending {
  background: #fefcbf;
  color: #744210;
  }
  
  .sigmanews-status-rejected {
  background: #fed7d7;
  color: #c53030;
  }
  
  .sigmanews-status-author {
    background: #e1f0ff;
    color: #0a4b78;
}

/* Notice */
.sigmanews-notice {
    padding: 20px;
    border-radius: var(--sigmanews-radius);
    margin-bottom: 24px;
}

.sigmanews-notice h4 {
    margin: 0 0 8px;
    font-size: 15px;
}

.sigmanews-notice p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

.sigmanews-notice-info {
  background: #e1f0ff;
  color: #0a4b78;
  border: 1px solid #90cdf4;
  }
  
  .sigmanews-notice-error {
  background: #fff5f5;
  color: #c53030;
  border: 1px solid #fc8181;
  }
  
  .sigmanews-notice-error h4 {
  color: #c53030;
  }
  
  /* Edit Profile Form */
  .sigmanews-edit-profile {
  background: #fff;
  padding: 24px;
  border-radius: var(--sigmanews-radius);
  border: 1px solid var(--sigmanews-gray-200);
  margin-bottom: 30px;
  }
  
  .sigmanews-edit-profile h3 {
  margin: 0 0 20px;
  font-size: 18px;
  font-weight: 600;
  color: var(--sigmanews-gray-800);
  }
  
  .sigmanews-edit-profile .sigmanews-form {
  padding: 0;
  box-shadow: none;
  border: none;
  }
  
/* Account info */
.sigmanews-account-info,
.sigmanews-account-access {
    background: #fff;
    padding: 24px;
    border-radius: var(--sigmanews-radius);
    box-shadow: var(--sigmanews-shadow);
    border: 1px solid var(--sigmanews-gray-200);
    margin-bottom: 20px;
}

.sigmanews-account-info h3,
.sigmanews-account-access h3 {
    margin: 0 0 20px;
    font-size: 16px;
    color: var(--sigmanews-gray-700);
    padding-bottom: 15px;
    border-bottom: 1px solid var(--sigmanews-gray-200);
}

.sigmanews-info-grid {
    display: grid;
    gap: 15px;
}

.sigmanews-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sigmanews-info-label {
    font-size: 12px;
    color: var(--sigmanews-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sigmanews-info-value {
    font-size: 15px;
    color: var(--sigmanews-gray-800);
    font-weight: 500;
}

/* Access list */
.sigmanews-access-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sigmanews-access-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--sigmanews-gray-100);
}

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

.sigmanews-access-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.sigmanews-access-granted .sigmanews-access-icon {
    background: #c6f6d5;
    color: #276749;
}

.sigmanews-access-denied .sigmanews-access-icon {
    background: #fed7d7;
    color: #c53030;
}

.sigmanews-access-denied span:last-child {
    color: var(--sigmanews-gray-400);
}

/* Loading state */
.sigmanews-btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.sigmanews-btn-loading::before {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: sigmanews-spin 0.8s linear infinite;
}

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

/* Responsive */
@media (max-width: 480px) {
    .sigmanews-form {
        padding: 24px 20px;
    }
    
    .sigmanews-form-header h2 {
        font-size: 24px;
    }
    
    .sigmanews-account-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .sigmanews-status-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* ============================================
   DARKMODE SUPPORT
   ============================================ */

.sigmanews-darkmode .sigmanews-form-container,
.sigmanews-darkmode .sigmanews-account-container {
    color: #e2e8f0;
}

.sigmanews-darkmode .sigmanews-form-header h2 {
    color: #f7fafc;
}

.sigmanews-darkmode .sigmanews-form-header p {
    color: #a0aec0;
}

.sigmanews-darkmode .sigmanews-form {
    background: #2d3748;
    border-color: #4a5568;
}

.sigmanews-darkmode .sigmanews-form-group label {
    color: #e2e8f0;
}

.sigmanews-darkmode .sigmanews-form-group input[type="text"],
.sigmanews-darkmode .sigmanews-form-group input[type="email"],
.sigmanews-darkmode .sigmanews-form-group input[type="password"] {
    background: #1a202c;
    border-color: #4a5568;
    color: #e2e8f0;
}

.sigmanews-darkmode .sigmanews-form-group input:focus {
    border-color: #63b3ed;
    box-shadow: 0 0 0 3px rgba(99, 179, 237, 0.15);
}

.sigmanews-darkmode .sigmanews-form-group input::placeholder {
    color: #718096;
}

.sigmanews-darkmode .sigmanews-field-hint {
    color: #718096;
}

.sigmanews-darkmode .sigmanews-checkbox-group label {
    color: #e2e8f0;
}

.sigmanews-darkmode .sigmanews-btn-primary {
    background: #3182ce;
}

.sigmanews-darkmode .sigmanews-btn-primary:hover {
    background: #2b6cb0;
}

.sigmanews-darkmode .sigmanews-btn-secondary {
    background: #4a5568;
    color: #e2e8f0;
}

.sigmanews-darkmode .sigmanews-btn-secondary:hover {
    background: #2d3748;
}

.sigmanews-darkmode .sigmanews-form-footer p {
    color: #a0aec0;
}

.sigmanews-darkmode .sigmanews-form-footer a {
    color: #63b3ed;
}

.sigmanews-darkmode .sigmanews-verification-notice {
    background: #1a202c;
    border-color: #4a5568;
}

.sigmanews-darkmode .sigmanews-verification-notice h4 {
    color: #e2e8f0;
}

.sigmanews-darkmode .sigmanews-verification-notice p {
    color: #a0aec0;
}

.sigmanews-darkmode .sigmanews-info {
    background: #1a365d;
    color: #bee3f8;
    border-color: #2b6cb0;
}

.sigmanews-darkmode .sigmanews-warning {
    background: #2d2a1e;
    color: #f6e05e;
    border-color: #d69e2e;
}

/* Account darkmode */
.sigmanews-darkmode .sigmanews-account-header h2 {
    color: #f7fafc;
}

.sigmanews-darkmode .sigmanews-status-card {
    background: #2d3748;
    border-color: #4a5568;
}

.sigmanews-darkmode .sigmanews-status-label {
    color: #a0aec0;
}

.sigmanews-darkmode .sigmanews-notice-info {
    background: #1a365d;
    color: #bee3f8;
    border-color: #2b6cb0;
}

.sigmanews-darkmode .sigmanews-notice-error {
    background: #2d1515;
    color: #fc8181;
    border-color: #c53030;
}

.sigmanews-darkmode .sigmanews-account-info,
.sigmanews-darkmode .sigmanews-account-access {
    background: #2d3748;
    border-color: #4a5568;
}

.sigmanews-darkmode .sigmanews-account-info h3,
.sigmanews-darkmode .sigmanews-account-access h3 {
    color: #e2e8f0;
    border-bottom-color: #4a5568;
}

.sigmanews-darkmode .sigmanews-info-label {
    color: #718096;
}

.sigmanews-darkmode .sigmanews-info-value {
    color: #f7fafc;
}

.sigmanews-darkmode .sigmanews-access-item {
    border-bottom-color: #4a5568;
}

.sigmanews-darkmode .sigmanews-access-denied span:last-child {
    color: #718096;
}

.sigmanews-darkmode .sigmanews-edit-profile {
    background: #2d3748;
    border-color: #4a5568;
}

.sigmanews-darkmode .sigmanews-edit-profile h3 {
    color: #e2e8f0;
}
