/**
 * SatvikSetu - Authentication Pages Styling
 */

.auth-container {
    max-width: 500px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: relative;
}

.auth-form-container {
    position: relative;
}

.auth-tabs {
    display: flex;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.auth-tabs a {
    padding: 15px 25px;
    font-weight: 600;
    color: var(--text-color);
    position: relative;
    transition: all 0.3s ease;
}

.auth-tabs a:hover {
    color: var(--primary-color);
}

.auth-tabs a.active {
    color: var(--primary-color);
}

.auth-tabs a.active:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
}

.auth-form {
    margin-top: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: var(--radius);
    background: #f9f9f9;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1.1rem;
    pointer-events: none;
}

.form-group label + .input-icon {
    top: calc(50% + 19px);
}

.form-group:not(:has(label)) .input-icon {
    top: 13px;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 127, 80, 0.1);
}

.auth-btn {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
}

.auth-btn:hover {
    background: #e56e48;
    transform: translateY(-2px);
}

.auth-links {
    margin-top: 25px;
    text-align: center;
    font-size: 0.9rem;
}

.auth-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.auth-links a:hover {
    text-decoration: underline;
}

.auth-separator {
    display: flex;
    align-items: center;
    margin: 25px 0;
    color: var(--text-secondary);
}

.auth-separator:before,
.auth-separator:after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(0,0,0,0.1);
}

.auth-separator span {
    padding: 0 15px;
    font-size: 0.9rem;
}

.social-login {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-login-btn {
    flex: 1;
    padding: 12px;
    border-radius: var(--radius);
    border: 1px solid rgba(0,0,0,0.1);
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.social-login-btn:hover {
    background: #f9f9f9;
    transform: translateY(-2px);
}

.social-login-btn i {
    font-size: 1.2rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h2 {
    color: var(--text-dark);
    margin-bottom: 10px;
}

.auth-header p {
    color: var(--text-secondary);
}

.form-error {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 5px;
}

.form-success {
    color: #2ecc71;
    font-size: 0.9rem;
    margin-top: 5px;
}

.alert {
    padding: 15px;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.alert-success {
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.3);
    color: #27ae60;
}

.alert-danger {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #e74c3c;
}

.alert-info {
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.3);
    color: #2980b9;
}

.password-field {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 12px;
    cursor: pointer;
    color: var(--text-secondary);
}

/* Profile Styles */
.profile-container {
    max-width: 900px;
    margin: 40px auto;
}

.profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 30px;
    border: 4px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info h2 {
    margin-bottom: 5px;
    color: var(--text-dark);
}

.profile-info p {
    color: var(--text-secondary);
}

.profile-tabs {
    border-bottom: 1px solid rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.profile-tabs .nav-link {
    padding: 15px 20px;
    font-weight: 500;
    color: var(--text-color);
    position: relative;
    display: inline-block;
}

.profile-tabs .nav-link.active {
    color: var(--primary-color);
}

.profile-tabs .nav-link.active:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
}

.profile-content {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.profile-action-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.profile-action-buttons .btn {
    flex: 0 0 48%;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: rgba(255, 127, 80, 0.05);
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-avatar {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .profile-action-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .profile-action-buttons .btn {
        flex: 1;
    }
}
