/* Enhanced Auth Pages Styles */
.auth-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #5f59c3 0%, #6dd5ed 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bgfade 2s;
}
@keyframes bgfade {
    0% { opacity: 0; }
    100% { opacity: 1; }
}
.auth-card {
    background: #fff;
    border-radius: 1.5rem;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    padding: 2.5rem 2rem 2rem 2rem;
    max-width: 430px;
    width: 100%;
    position: relative;
    animation: cardpop 0.8s cubic-bezier(.68,-0.55,.27,1.55);
}
@keyframes cardpop {
    0% { transform: scale(0.8) translateY(60px); opacity: 0; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}
.auth-card .brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}
.auth-card .brand img {
    height: 40px;
}
.auth-card h2 {
    font-weight: 700;
    color: #5f59c3;
    margin-bottom: 0.7rem;
    text-align: center;
}
.auth-card p {
    color: #888;
    text-align: center;
    margin-bottom: 1.5rem;
}
.auth-card .form-group {
    margin-bottom: 1.2rem;
}
.auth-card .form-control {
    border-radius: 0.7rem;
    border: 1px solid #e4e4e4;
    padding: 0.85rem 1.1rem;
    font-size: 1rem;
    transition: border 0.3s;
}
.auth-card .form-control:focus {
    border-color: #5f59c3;
    box-shadow: 0 0 0 2px #5f59c32a;
}
.auth-card .btn-primary {
    background: linear-gradient(90deg, #5f59c3 0%, #6dd5ed 100%);
    border: none;
    border-radius: 0.7rem;
    font-weight: 600;
    box-shadow: 0 4px 16px 0 #5f59c344;
    transition: background 0.3s, box-shadow 0.3s;
    padding: 0.7rem 0;
}
.auth-card .btn-primary:hover {
    background: linear-gradient(90deg, #6dd5ed 0%, #5f59c3 100%);
    box-shadow: 0 6px 24px 0 #5f59c355;
}
.icon-input {
    position: relative;
    margin-bottom: 1rem;
}
.icon-input input.form-control,
.icon-input textarea.form-control,
.icon-input select.form-control {
    padding-left: 2.2rem;
    /* Ensures text never overlaps icon */
    box-sizing: border-box;
}
.icon-input input.form-control::placeholder,
.icon-input textarea.form-control::placeholder {
    color: #b0b0b0;
    opacity: 1;
    font-size: 1rem;
}
.icon-input select.form-control {
    color: #333;
    background: #fff;
}
.icon-input {
    margin-bottom: 1rem;
}
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: #5f59c3;
    font-size: 1.1rem;
}
.auth-card .icon-input input {
    padding-left: 2.5rem;
}
.auth-card .switch-link {
    display: block;
    text-align: center;
    margin-top: 1.2rem;
    color: #5f59c3;
    text-decoration: underline;
    transition: color 0.2s;
}
.auth-card .switch-link:hover {
    color: #3a3771;
}
.auth-card .form-check-label {
    font-size: 0.97rem;
    color: #666;
}
.auth-card .form-check-input:checked {
    background-color: #5f59c3;
    border-color: #5f59c3;
}
.auth-card .profile-preview {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1rem;
}
.auth-card .profile-preview img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #5f59c3;
}
.fade-in {
    animation: fadeIn 1s;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@media (max-width: 576px) {
    .auth-card {
        padding: 1.2rem 0.5rem;
    }
}
