/* InvestoPersia Authentication Styles - Modern & Eye-catching */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #003B46 0%, #07575B 50%, #C4A35A 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Animated background elements */
body::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    animation: float 20s ease-in-out infinite;
    z-index: 1;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.auth-wrapper {
    width: 100%;
    max-width: 450px;
    padding: 20px;
    position: relative;
    z-index: 2;
}

.auth-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 0;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

/* Header Section */
.auth-header {
    background: linear-gradient(135deg, #003B46 0%, #07575B 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.auth-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="header-pattern" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23header-pattern)"/></svg>');
    opacity: 0.3;
}

.auth-logo {
    position: relative;
    z-index: 1;
}

.auth-logo img {
    width: 70px;
    height: 70px;
    margin-bottom: 15px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.auth-logo h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.auth-logo p {
    opacity: 0.9;
    font-size: 0.95rem;
    margin: 0;
}

/* Tab Navigation */
.auth-tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.tab-btn {
    flex: 1;
    padding: 18px 15px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #6c757d;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 59, 70, 0.1), transparent);
    transition: left 0.5s ease;
}

.tab-btn:hover::before {
    left: 100%;
}

.tab-btn.active {
    background: white;
    color: #003B46;
    border-bottom: 3px solid #C4A35A;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.tab-btn:hover {
    color: #003B46;
    background: rgba(255, 255, 255, 0.5);
}

/* Forms */
.auth-form {
    display: none;
    padding: 40px 30px;
}

.auth-form.active {
    display: block;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 15px 18px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #C4A35A;
    background: white;
    box-shadow: 0 0 0 3px rgba(196, 163, 90, 0.1);
    transform: translateY(-1px);
}

.form-group input::placeholder {
    color: #adb5bd;
    font-style: italic;
}

.form-group input.error,
.form-group select.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
    animation: shake 0.5s ease-in-out;
}

.form-group input.valid,
.form-group select.valid {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Password strength indicators */
.form-group input.weak {
    border-color: #dc3545;
}

.form-group input.medium {
    border-color: #ffc107;
}

.form-group input.strong {
    border-color: #28a745;
}

.password-strength {
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Form Options */
.form-options {
    margin-bottom: 25px;
}

.form-options label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: #6c757d;
    cursor: pointer;
    transition: color 0.3s ease;
}

.form-options label:hover {
    color: #003B46;
}

.form-options input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #C4A35A;
}

.forgot-link {
    color: #003B46;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    float: right;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: #C4A35A;
    text-decoration: underline;
}

/* Submit Button */
.auth-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #C4A35A 0%, #d4b16a 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.auth-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.auth-btn:hover::before {
    left: 100%;
}

.auth-btn:hover {
    background: linear-gradient(135deg, #d4b16a 0%, #C4A35A 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(196, 163, 90, 0.4);
}

.auth-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(196, 163, 90, 0.3);
}

/* Footer */
.auth-footer {
    text-align: center;
    padding: 25px;
    background: #f8f9fa;
    color: #6c757d;
    border-top: 1px solid #e9ecef;
}

.back-home {
    color: #003B46;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.back-home:hover {
    color: #C4A35A;
    transform: translateX(-5px);
}

.back-home::before {
    content: '←';
    font-size: 1.1rem;
}

/* Messages */
.error-message {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 8px;
    padding: 10px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.error-message::before {
    content: '⚠';
    font-size: 1rem;
}

.success-message {
    color: #155724;
    font-size: 0.85rem;
    margin-top: 8px;
    padding: 10px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.success-message::before {
    content: '✓';
    font-size: 1rem;
}

/* Loading State */
.auth-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

.auth-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

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

/* Responsive Design */

/* Tablet */
@media (max-width: 768px) {
    .auth-wrapper {
        padding: 15px;
    }
    
    .auth-container {
        max-width: 500px;
    }
    
    .auth-header {
        padding: 35px 25px;
    }
    
    .auth-header h1 {
        font-size: 2rem;
    }
    
    .auth-form {
        padding: 35px 25px;
    }
    
    .form-row {
        gap: 12px;
    }
}

/* Mobile Landscape */
@media (max-width: 576px) {
    .auth-wrapper {
        padding: 10px;
    }
    
    .auth-container {
        max-width: 100%;
        border-radius: 20px;
    }
    
    .auth-header {
        padding: 25px 20px;
    }
    
    .auth-header h1 {
        font-size: 1.8rem;
    }
    
    .auth-logo img {
        width: 60px;
        height: 60px;
    }
    
    .auth-form {
        padding: 25px 20px;
    }
    
    .tab-btn {
        padding: 12px 8px;
        font-size: 0.9rem;
    }
    
    .auth-btn {
        padding: 14px;
        font-size: 1rem;
    }
    
    .form-group input,
    .form-group select {
        padding: 12px 15px;
        font-size: 0.95rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .auth-wrapper {
        padding: 8px;
    }
    
    .auth-container {
        border-radius: 18px;
    }
    
    .auth-header {
        padding: 20px 15px;
    }
    
    .auth-header h1 {
        font-size: 1.6rem;
    }
    
    .auth-logo img {
        width: 50px;
        height: 50px;
    }
    
    .auth-logo p {
        font-size: 0.85rem;
    }
    
    .auth-form {
        padding: 20px 15px;
    }
    
    .tab-btn {
        padding: 10px 6px;
        font-size: 0.85rem;
    }
    
    .auth-btn {
        padding: 12px;
        font-size: 0.95rem;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group input,
    .form-group select {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .form-group label {
        font-size: 0.85rem;
        margin-bottom: 8px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .form-options label {
        font-size: 0.8rem;
        gap: 8px;
    }
    
    .form-options input[type="checkbox"] {
        width: 16px;
        height: 16px;
    }
    
    .forgot-link {
        float: none;
        display: block;
        margin-top: 8px;
        text-align: center;
        font-size: 0.8rem;
    }
    
    .auth-footer {
        padding: 20px 15px;
    }
    
    .back-home {
        font-size: 0.8rem;
    }
}

/* Extra Small Mobile */
@media (max-width: 360px) {
    .auth-wrapper {
        padding: 5px;
    }
    
    .auth-container {
        border-radius: 15px;
    }
    
    .auth-header {
        padding: 18px 12px;
    }
    
    .auth-header h1 {
        font-size: 1.4rem;
    }
    
    .auth-logo img {
        width: 45px;
        height: 45px;
    }
    
    .auth-logo p {
        font-size: 0.8rem;
    }
    
    .auth-form {
        padding: 18px 12px;
    }
    
    .tab-btn {
        padding: 8px 4px;
        font-size: 0.8rem;
    }
    
    .auth-btn {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    .form-group input,
    .form-group select {
        padding: 8px 10px;
        font-size: 0.85rem;
    }
    
    .form-group label {
        font-size: 0.8rem;
        margin-bottom: 6px;
    }
    
    .form-options label {
        font-size: 0.75rem;
        gap: 6px;
    }
    
    .form-options input[type="checkbox"] {
        width: 14px;
        height: 14px;
    }
    
    .forgot-link {
        font-size: 0.75rem;
    }
    
    .auth-footer {
        padding: 15px 12px;
    }
    
    .back-home {
        font-size: 0.75rem;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .auth-wrapper {
        padding: 5px;
    }
    
    .auth-container {
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .auth-header {
        padding: 15px 20px;
    }
    
    .auth-header h1 {
        font-size: 1.6rem;
        margin-bottom: 5px;
    }
    
    .auth-logo img {
        width: 40px;
        height: 40px;
        margin-bottom: 8px;
    }
    
    .auth-form {
        padding: 15px 20px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-row {
        gap: 10px;
    }
}

/* WordPress Integration Helpers */
.wp-auth-form {
    /* WordPress specific styles */
}

.wp-auth-form .form-group input {
    /* WordPress input styling overrides */
}

.wp-auth-form .auth-btn {
    /* WordPress button styling overrides */
}

/* Additional animations */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.auth-container:hover {
    animation: pulse 2s infinite;
}

/* Focus states for accessibility */
.auth-btn:focus,
.tab-btn:focus,
.form-group input:focus,
.form-group select:focus {
    outline: 2px solid #C4A35A;
    outline-offset: 2px;
}

/* Notification System */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    z-index: 10000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    max-width: 300px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.notification.error {
    background: linear-gradient(135deg, #dc3545, #e74c3c);
}

.notification.info {
    background: linear-gradient(135deg, #17a2b8, #20c997);
}

.notification::before {
    margin-right: 10px;
    font-size: 1.2rem;
}

.notification.success::before {
    content: '✓';
}

.notification.error::before {
    content: '⚠';
}

.notification.info::before {
    content: 'ℹ';
}

/* Progress bar for form completion */
.form-progress {
    width: 100%;
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    margin-bottom: 20px;
    overflow: hidden;
}

.form-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #C4A35A, #d4b16a);
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 2px;
}

/* Enhanced form animations */
.form-group {
    position: relative;
    overflow: hidden;
}

.form-group::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #C4A35A, transparent);
    transition: left 0.5s ease;
}

.form-group:focus-within::after {
    left: 100%;
} 