/* Pegasus Auth System - Frontend Styles */

.pegasus-auth-wrapper {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: transparent;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

.pegasus-auth-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    pointer-events: none;
}

.pegasus-auth-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    background: #ffffff;
    border-radius: 16px;
    padding: 45px 40px;
    box-shadow: 0 10px 40px rgba(30, 58, 138, 0.12);
    border: 1px solid #e2e8f0;
}

.pegasus-auth-logo {
    text-align: center;
    margin-bottom: 35px;
}

.pegasus-auth-logo img {
    max-width: 200px;
    height: auto;
    margin-bottom: 15px;
}

.pegasus-auth-subtitle {
    font-size: 15px;
    color: #64748b;
    font-weight: 400;
    margin: 0;
}

.pegasus-tab-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    background: #f8fafc;
    padding: 4px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.pegasus-tab-btn {
    flex: 1;
    padding: 12px;
    background: transparent;
    border: none;
    color: #64748b;
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.pegasus-tab-btn.active {
    background: var(--pegasus-primary-color, #1e3a8a);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.2);
}

.pegasus-tab-content {
    display: none;
}

.pegasus-tab-content.active {
    display: block;
    animation: pegasus-fadeIn 0.4s ease;
}

@keyframes pegasus-fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.pegasus-form-group {
    margin-bottom: 22px;
}

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

.required {
    color: #ef4444;
    margin-left: 2px;
}

.pegasus-input-wrapper {
    position: relative;
}

.pegasus-form-group input {
    width: 100%;
    padding: 13px 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #1e293b;
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

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

.pegasus-form-group input::placeholder {
    color: #94a3b8;
}

.pegasus-password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 6px;
    font-size: 18px;
    transition: color 0.3s ease;
    line-height: 1;
}

.pegasus-password-toggle:hover {
    color: var(--pegasus-primary-color, #1e3a8a);
}

.pegasus-form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 10px;
}

.pegasus-checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pegasus-checkbox-wrapper input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--pegasus-primary-color, #1e3a8a);
}

.pegasus-checkbox-wrapper label {
    font-size: 14px;
    color: #1e293b;
    cursor: pointer;
    margin: 0;
}

.pegasus-forgot-password {
    color: var(--pegasus-primary-color, #1e3a8a);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.pegasus-forgot-password:hover {
    color: var(--pegasus-accent-color, #3b82f6);
    text-decoration: underline;
}

.pegasus-btn {
    width: 100%;
    padding: 14px;
    background: var(--pegasus-primary-color, #1e3a8a);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pegasus-btn:hover {
    background: var(--pegasus-accent-color, #3b82f6);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.25);
}

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

.pegasus-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.pegasus-alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 22px;
    font-size: 14px;
    display: none;
    animation: pegasus-slideDown 0.3s ease;
    align-items: center;
    gap: 10px;
}

@keyframes pegasus-slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.pegasus-alert.show {
    display: flex;
}

.pegasus-alert.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.pegasus-alert.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.pegasus-strength-meter {
    margin-top: 8px;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
}

.pegasus-strength-meter-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.pegasus-strength-text {
    font-size: 12px;
    margin-top: 6px;
    font-weight: 500;
}

.pegasus-reset-form {
    display: none;
}

.pegasus-reset-form.active {
    display: block;
    animation: pegasus-fadeIn 0.4s ease;
}

.pegasus-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 24px;
    transition: color 0.3s ease;
}

.pegasus-back-link:hover {
    color: var(--pegasus-primary-color, #1e3a8a);
}

.pegasus-reset-title {
    color: #1e293b;
    margin-bottom: 10px;
    font-size: 22px;
    font-weight: 600;
}

.pegasus-reset-description {
    color: #64748b;
    margin-bottom: 28px;
    font-size: 14px;
    line-height: 1.6;
}

.pegasus-info-text {
    font-size: 13px;
    color: #64748b;
    margin-top: 8px;
    line-height: 1.5;
}

.pegasus-footer-text {
    text-align: center;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #e2e8f0;
    font-size: 13px;
    color: #64748b;
}

.pegasus-footer-text a {
    color: var(--pegasus-primary-color, #1e3a8a);
    text-decoration: none;
    font-weight: 500;
}

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

@media (max-width: 480px) {
    .pegasus-auth-container {
        padding: 35px 25px;
    }
    
    .pegasus-auth-logo h1 {
        font-size: 22px;
    }
    
    .pegasus-form-options {
        flex-direction: column;
        align-items: flex-start;
    }
}
