/* Rishta Profile - Enhanced Matrimonial Site Auth Styles */

.auth-body {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: relative;
    overflow-x: hidden;
}

.auth-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(255, 182, 193, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 105, 180, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 218, 185, 0.3) 0%, transparent 50%);
    pointer-events: none;
    animation: backgroundFloat 20s ease-in-out infinite;
}

.auth-body::after {
    content: '💍';
    position: absolute;
    top: 15%;
    left: 8%;
    font-size: 3rem;
    opacity: 0.15;
    animation: float 8s ease-in-out infinite;
}

.auth-container {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 192, 203, 0.4);
    position: relative;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(255, 105, 180, 0.2);
}

.auth-card {
    background: white;
    border-radius: 30px;
    box-shadow: 0 30px 70px rgba(255, 105, 180, 0.18);
    padding: 3rem;
    margin: 2rem 0;
    border: 3px solid rgba(255, 192, 203, 0.3);
    position: relative;
    overflow: hidden;
    animation: slideInUp 0.8s ease-out;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(90deg, #ff6b9d, #c44569, #f8b500, #ff9a9e, #ff6b9d);
    border-radius: 30px 30px 0 0;
    animation: gradientShift 3s ease-in-out infinite;
}

.auth-card::after {
    content: '💕';
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 2.2rem;
    opacity: 0.7;
    animation: heartbeat 3s infinite;
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.auth-title {
    color: #c44569;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    background: linear-gradient(135deg, #ff6b9d, #c44569);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 3px 6px rgba(196, 69, 105, 0.15);
    position: relative;
    letter-spacing: -0.5px;
}

.auth-title::before {
    content: '✨';
    position: absolute;
    left: -35px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    opacity: 0.8;
    animation: sparkle 4s ease-in-out infinite;
}

.auth-title::after {
    content: '✨';
    position: absolute;
    right: -35px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    opacity: 0.8;
    animation: sparkle 4s ease-in-out infinite 2s;
}

.auth-subtitle {
    color: #666;
    font-size: 1.2rem;
    margin: 0;
    font-weight: 500;
    opacity: 0.9;
}

.auth-form .row {
    margin-bottom: 0;
}

.auth-form .form-control {
    border: 3px solid #ffe4e8;
    border-radius: 15px;
    padding: 1rem 1.2rem;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #fdf2f5, #fef7f9);
    color: #333;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.auth-form .form-control:focus {
    border-color: #ff6b9d;
    box-shadow: 0 0 0 0.3rem rgba(255, 107, 157, 0.2), inset 0 2px 4px rgba(0, 0, 0, 0.05);
    background: white;
    transform: translateY(-2px) scale(1.02);
    outline: none;
}

.auth-form .form-control:hover {
    border-color: #ffb3c1;
    transform: translateY(-1px);
}

.auth-form .form-select {
    border: 3px solid #ffe4e8;
    border-radius: 15px;
    padding: 1rem 1.2rem;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #fdf2f5, #fef7f9);
    color: #333;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.auth-form .form-select:focus {
    border-color: #ff6b9d;
    box-shadow: 0 0 0 0.3rem rgba(255, 107, 157, 0.2);
    background: white;
    outline: none;
}

.auth-form .form-check {
    margin-bottom: 1.5rem;
}

.auth-form .form-check-input:checked {
    background-color: #ff6b9d;
    border-color: #ff6b9d;
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 157, 0.3);
}

.auth-form .form-check-label {
    color: #666;
    font-weight: 500;
    margin-left: 0.5rem;
}

.auth-btn {
    background: linear-gradient(135deg, #ff6b9d, #c44569);
    border: none;
    border-radius: 15px;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

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

.auth-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px rgba(255, 107, 157, 0.5);
    background: linear-gradient(135deg, #e55a8a, #a83c56);
}

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

.auth-btn:active {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 8px 20px rgba(255, 107, 157, 0.4);
}

.auth-links {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #ffe4e8;
}

.auth-link {
    color: #ff6b9d;
    text-decoration: none;
    font-weight: 600;
    margin: 0 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.auth-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ff6b9d;
    transition: width 0.3s ease;
}

.auth-link:hover {
    color: #c44569;
    transform: translateY(-1px);
}

.auth-link:hover::after {
    width: 100%;
}

.auth-social {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #ffe4e8;
}

.auth-social p {
    text-align: center;
    color: #666;
    margin-bottom: 1.5rem;
    font-weight: 500;
    font-size: 1rem;
}

.auth-social .btn {
    border-radius: 12px;
    padding: 0.875rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid;
}

.auth-social .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Animations */
@keyframes heartbeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0.8) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.3) rotate(180deg); }
}

@keyframes backgroundFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-10px) rotate(1deg); }
    66% { transform: translateY(5px) rotate(-1deg); }
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes slideInUp {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive design */
@media (max-width: 576px) {
    .auth-card {
        margin: 1rem;
        padding: 2.5rem 2rem;
        border-radius: 20px;
    }

    .auth-title {
        font-size: 2rem;
    }

    .auth-body::after {
        display: none;
    }

    .auth-title::before,
    .auth-title::after {
        display: none;
    }

    .auth-btn {
        padding: 0.9rem 2rem;
        font-size: 0.85rem;
    }

    .auth-form .form-control {
        padding: 0.9rem 1rem;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .auth-card {
        padding: 2.5rem 2rem;
    }

    .auth-title {
        font-size: 2.2rem;
    }
}

/* Loading animation for form submission */
.auth-form.submitting {
    pointer-events: none;
    opacity: 0.7;
}

.auth-form.submitting .auth-btn::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Matrimonial-themed color variables */
:root {
    --matrimonial-pink: #ff6b9d;
    --matrimonial-rose: #c44569;
    --matrimonial-light: #ffe4e8;
    --matrimonial-bg: #fdf2f5;
    --matrimonial-gold: #f8b500;
}

/* Top avatar and back button */
.auth-top {
    height: 86px;
}

.auth-back {
    position: absolute;
    left: 8px;
    top: 6px;
    font-size: 1.6rem;
    color: #666;
    text-decoration: none;
    background: rgba(255,255,255,0.9);
    padding: 6px 10px;
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

.auth-avatar {
    width: 72px;
    height: 72px;
    background: radial-gradient(circle at 30% 30%, rgba(255,167,163,0.18), rgba(255,255,255,0));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

/* Profile-for pills */
.profile-for-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #343a40;
}

.profile-for-group .btn-check {
    display: none;
}

.profile-option {
    display: inline-block;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    border: 1px solid #ececec;
    background: #fff;
    color: #444;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(16,24,40,0.03);
    transition: all 0.25s ease;
}

.profile-option:hover {
    transform: translateY(-2px);
    border-color: #e6e6e6;
}

.btn-check:checked + .profile-option {
    background: linear-gradient(90deg, #3dd5d1, #00a8c4);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 12px 30px rgba(0,168,196,0.18);
}

/* Teal primary button for the registration flow */
.btn-teal {
    background: linear-gradient(90deg, #33d6d2, #00a3c4);
    border: none;
    color: white;
}

.btn-teal:hover {
    background: linear-gradient(90deg, #27c8c5, #008fa8);
}

.profile-info-box {
    border: 1px solid rgba(249, 188, 123, 0.25);
    background: rgba(255,247,240,0.8);
    border-radius: 10px;
}

.profile-info-box .info-icon {
    width: 36px;
    height: 36px;
    background: #f8b500;
    border-radius: 50%;
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.profile-info-box .info-text {
    color: #5b5b5b;
    font-size: 0.98rem;
}

@media (max-width: 576px) {
    .profile-option { font-size: 0.95rem; padding: .45rem .9rem; }
    .auth-avatar { width: 62px; height: 62px; }
}
