/* ==========================================================================
   SET PASSWORD PAGE
   Claude 337 - March 27, 2026
   Append to: /wp-content/plugins/teacherai-simple/assets/css/platform-core.css
   ========================================================================== */

.teacherai-set-password-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #1e3a5f 100%);
    padding: 40px 20px;
}

.set-password-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 48px 40px;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Header */
.set-password-header {
    text-align: center;
    margin-bottom: 32px;
}

.set-password-logo {
    margin-bottom: 16px;
}

.set-password-logo svg {
    height: 48px;
    width: auto;
}

.set-password-header h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1e1b4b;
    margin: 0 0 10px 0;
}

.set-password-subtitle {
    color: #6b7280;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

/* Error */
.set-password-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    color: #dc2626;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

/* Form */
.set-password-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
}

.form-field input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    color: #111827;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.form-field input[type="password"]:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

/* Submit button */
.btn-set-password {
    background: linear-gradient(135deg, #22D3EE, #A855F7);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
    width: 100%;
    margin-top: 4px;
}

.btn-set-password:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

/* Account note */
.set-password-note {
    text-align: center;
    font-size: 0.8rem;
    color: #9ca3af;
    margin: 16px 0 0 0;
}

/* Success state */
.set-password-success {
    text-align: center;
    padding: 16px 0;
}

.success-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #22D3EE, #4ADE80);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    font-weight: 700;
    margin: 0 auto 20px;
}

.set-password-success h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e1b4b;
    margin: 0 0 10px 0;
}

.set-password-success p {
    color: #6b7280;
    margin: 0 0 28px 0;
}

.btn-goto-dashboard {
    display: inline-block;
    background: linear-gradient(135deg, #22D3EE, #A855F7);
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    transition: opacity 0.2s;
}

.btn-goto-dashboard:hover {
    opacity: 0.92;
    color: #ffffff;
}

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

    .set-password-header h1 {
        font-size: 1.3rem;
    }
}
/* ==========================================================================
   SET PASSWORD PAGE — EMAIL FIELD ADDITION
   Claude 358 - April 5, 2026
   Append to: /wp-content/plugins/teacherai-simple/assets/css/set-password.css
   ========================================================================== */

/* Read-only email display field */
.form-field input[type="email"].email-readonly {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    color: #6b7280;
    background: #f9fafb;
    cursor: default;
    box-sizing: border-box;
}

.form-field input[type="email"].email-readonly:focus {
    outline: none;
    border-color: #e5e7eb;
    box-shadow: none;
}
/* ==========================================================================
   SET PASSWORD PAGE — PASSWORD VISIBILITY TOGGLE
   Claude 359 - April 5, 2026
   Append to: /wp-content/plugins/teacherai-simple/assets/css/set-password.css
   ========================================================================== */

/* Wrapper positions the eyeball button inside the input */
.password-field-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.password-field-wrap input[type="password"],
.password-field-wrap input[type="text"] {
    width: 100%;
    padding: 12px 44px 12px 16px; /* right padding makes room for the button */
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    color: #111827;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.password-field-wrap input[type="password"]:focus,
.password-field-wrap input[type="text"]:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

/* Eyeball button */
.toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.toggle-password:hover {
    color: #6366f1;
}

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