/* Modern Authentication Styles for Quran App */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    background: linear-gradient(135deg, #c2410c 0%, #ea580c 50%, #f97316 100%);
    min-height: 100vh;
    padding: 0;
    margin: 0;
    overflow-x: hidden;
}

/* gradientFlow animation removed */

/* Auth Container */
.auth-container {
    max-width: 480px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Welcome Section */
.welcome-section {
    text-align: center;
    margin-bottom: 30px;
}

/* fadeIn animation removed for instant load */

.app-logo {
    font-size: 80px;
    margin-bottom: 15px;
}

.welcome-section h1 {
    color: white;
    font-size: 2em;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    font-weight: 700;
}

.welcome-section p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.1em;
}

/* Auth Card */
.auth-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(51, 65, 85, 0.3), 0 5px 20px rgba(71, 85, 105, 0.2);
    border: 3px solid transparent;
    background-clip: padding-box;
    position: relative;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(135deg, #c2410c, #ea580c, #f97316);
    border-radius: inherit;
    z-index: -1;
}

/* slideUp animation removed for instant load */

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 600;
}

.alert-error {
    background: #fee;
    color: #c33;
    border-left: 4px solid #c33;
}

.alert-success {
    background: #efe;
    color: #2c7a2c;
    border-left: 4px solid #2c7a2c;
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

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

/* Input with Icon */
.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    display: flex;
    align-items: center;
    pointer-events: none;
}

.form-control {
    width: 100%;
    padding: 14px 16px 14px 45px;
    font-size: 1em;
    border: 2px solid #cbd5e1;
    border-radius: 10px;
    transition: all 0.3s;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

/* Password Toggle Button */
.password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
}

.password-toggle:hover {
    opacity: 0.7;
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 8px;
    height: 4px;
    background: #eee;
    border-radius: 2px;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s;
}

.password-strength.active {
    opacity: 1;
}

.password-strength-bar {
    height: 100%;
    width: 0;
    transition: all 0.3s;
    background: #ccc;
}

.strength-weak {
    width: 33%;
    background: #dc3545;
}

.strength-medium {
    width: 66%;
    background: #ffc107;
}

.strength-strong {
    width: 100%;
    background: #28a745;
}

/* Checkbox */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #f97316;
}

.checkbox-group label {
    color: #666;
    font-size: 0.9em;
    cursor: pointer;
    margin: 0;
    font-weight: 500;
}

/* Buttons */
.btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 1.05em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(234, 88, 12, 0.4);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(234, 88, 12, 0.6), 0 0 30px rgba(249, 115, 22, 0.3);
    background: linear-gradient(135deg, #c2410c 0%, #ea580c 100%);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-google {
    background: white;
    color: #444;
    border: 2px solid #ddd;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-google:hover {
    border-color: #f97316;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
    background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
}

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

/* Divider */
.divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
    color: #999;
    font-size: 0.9em;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #ddd;
}

.divider span {
    padding: 0 15px;
}

/* Footer Links */
.auth-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #666;
    font-size: 0.95em;
}

.auth-link {
    color: #f97316;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.auth-link:hover {
    color: #ea580c;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 600px) {
    .auth-container {
        padding: 15px;
    }

    .welcome-section h1 {
        font-size: 1.8em;
    }

    .app-logo {
        font-size: 60px;
    }

    .auth-card {
        padding: 25px 20px;
    }
}
