/* WowPlatter Login Page Styles */

/* Authentication Page */
.wowplatter-auth-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Authentication Container */
.auth-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    width: 100%;
    max-width: 450px;
}

/* Form Wrapper */
.auth-form-wrapper {
    padding: 40px;
}

/* Tab Navigation */
.auth-tabs {
    display: flex;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 15px;
    padding: 5px;
    margin-bottom: 30px;
}

.tab-button {
    flex: 1;
    background: transparent;
    border: none;
    padding: 15px 20px;
    border-radius: 10px;
    color: #667eea;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.tab-button:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #5a67d8;
}

.tab-button.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Form Styles */
.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-form h2 {
    color: #333;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    text-align: center;
}

.form-subtitle {
    color: #666;
    text-align: center;
    margin-bottom: 30px;
    font-size: 1rem;
}

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

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

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

/* Custom Checkbox */
.checkbox-group {
    display: flex;
    align-items: center;
    margin: 20px 0;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkbox-group .checkmark {
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 2px solid #e1e5e9;
    border-radius: 4px;
    margin-right: 12px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-group:hover .checkmark {
    border-color: #667eea;
}

.checkbox-group input:checked ~ .checkmark {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
}

.checkbox-group .checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-group input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-group label {
    color: #666;
    font-size: 14px;
    cursor: pointer;
    margin: 0;
}

/* Authentication Buttons */
.auth-button {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.auth-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.auth-button:active {
    transform: translateY(0);
}

/* Authentication Links */
.auth-links {
    text-align: center;
    margin-top: 25px;
}

.auth-links p {
    color: #666;
    margin: 0 0 15px 0;
    font-size: 14px;
}

.auth-links a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.auth-links a:hover {
    color: #5a67d8;
    text-decoration: underline;
}

/* Message Styles */
.error-message {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid rgba(220, 53, 69, 0.2);
    font-size: 14px;
}

.success-message {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid rgba(40, 167, 69, 0.2);
    font-size: 14px;
}

/* Logged In State */
.logged-in-state {
    text-align: center;
    padding: 40px;
}

.logged-in-message {
    margin-bottom: 30px;
}

.welcome-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.welcome-header i {
    color: #28a745;
    font-size: 24px;
}

.welcome-header h2 {
    color: #333;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.logged-in-message p {
    color: #666;
    font-size: 1.1rem;
    margin: 0;
}

/* User Actions */
.user-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 300px;
    margin: 0 auto;
}

.user-actions .btn {
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: inline-block;
}

.user-actions .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.user-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    text-decoration: none;
    color: white;
}

.user-actions .btn-secondary {
    background: white;
    color: #667eea;
    border-color: #667eea;
}

.user-actions .btn-secondary:hover {
    background: #f8f9ff;
    transform: translateY(-2px);
    text-decoration: none;
    color: #667eea;
}

.user-actions .btn-outline {
    background: transparent;
    color: #666;
    border-color: #ddd;
}

.user-actions .btn-outline:hover {
    background: #f8f9fa;
    border-color: #999;
    color: #333;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wowplatter-auth-page {
        padding: 15px;
    }
    
    .auth-form-wrapper {
        padding: 30px 25px;
    }
    
    .auth-form h2 {
        font-size: 1.6rem;
    }
    
    .tab-button {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .form-group input {
        padding: 12px 16px;
        font-size: 16px;
    }
    
    .auth-button {
        padding: 14px 20px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .auth-container {
        margin: 10px;
    }
    
    .auth-form-wrapper {
        padding: 25px 20px;
    }
    
    .error-message,
    .success-message {
        padding: 10px 12px;
        font-size: 13px;
    }
}

/* Loading States */
.auth-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.auth-button.loading {
    color: transparent;
}

.auth-button.loading:after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
}

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