/* Enhanced login.css with interactive and futuristic elements */
/* Login Page Specific Styles */

:root {
    /* Core variables for consistency */
    --primary-blue: #0077B6;
    --secondary-teal: #20B2AA;
    --dentist-blue: #2193b0;
    --dentist-light-blue: #6dd5ed;
    --dentist-orange: #ff7e5f;
    --text-charcoal: #333333;
    --background-white: #FFFFFF;
    --background-gray: #F8F9FA;
    --box-shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --box-shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1);
    --box-shadow-lg: 0 15px 30px rgba(0, 0, 0, 0.1);
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    --border-radius-xl: 30px;
    --transition-normal: all 0.3s ease;
    
    /* Login-specific gradient variables */
    --login-gradient: linear-gradient(135deg, #2193b0 0%, #6dd5ed 100%);
    --login-gradient-hover: linear-gradient(135deg, #1c809c 0%, #5bc0d6 100%);
    --orange-gradient: linear-gradient(135deg, #ff7e5f 0%, #feb47b 100%);
    --login-backdrop: rgba(33, 147, 176, 0.05);
}

/* Login Page Container */
.login-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 40px 20px;
    background-color: var(--background-white);
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(109, 213, 237, 0.05) 0%, transparent 300px),
        radial-gradient(circle at 80% 70%, rgba(255, 126, 95, 0.05) 0%, transparent 300px);
    position: relative;
    overflow: hidden;
}

/* Animated Background Elements */
.login-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.login-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.07;
    z-index: 0;
}

.login-shape.shape-1 {
    top: -5%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: var(--dentist-light-blue);
    animation: pulse-slow 15s infinite alternate;
}

.login-shape.shape-2 {
    bottom: -15%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: var(--dentist-orange);
    animation: pulse-slow 20s infinite alternate;
}

.login-shape.shape-3 {
    top: 40%;
    right: 30%;
    width: 200px;
    height: 200px;
    background: var(--dentist-light-blue);
    animation: pulse-slow 12s infinite alternate;
}

@keyframes pulse-slow {
    0% {
        transform: scale(1) translate(0, 0);
        opacity: 0.05;
    }
    100% {
        transform: scale(1.1) translate(20px, 10px);
        opacity: 0.1;
    }
}

/* Welcome section with animation */
.welcome-section {
    position: relative;
    text-align: center;
    margin: 0 auto 40px;
    max-width: 700px;
    padding: 30px;
    border-radius: var(--border-radius-lg);
    background: var(--login-backdrop);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    z-index: 10;
    animation: fadeInDown 0.8s ease forwards;
    opacity: 0;
}

.welcome-text {
    color: var(--text-charcoal);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.welcome-text:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--login-gradient);
    border-radius: 3px;
}

.welcome-section p {
    color: #666;
    font-size: 18px;
    line-height: 1.6;
    max-width: 600px;
    margin: 20px auto 0;
}

/* Dashboard card styling */
.dashboard-card {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-md);
    margin: 0 auto;
    max-width: 500px;
    position: relative;
    z-index: 10;
    animation: fadeInUp 0.8s ease forwards 0.3s;
    opacity: 0;
    overflow: hidden;
    transition: var(--transition-normal);
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

/* Tabs styling with interactive elements */
.login-panel-content {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    position: relative;
    padding: 0 30px 30px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

/* Decorative Elements */
.dental-decorative-elements {
    position: relative;
    overflow: hidden;
}

.dental-svg-top {
    width: 100%;
    height: auto;
    display: block;
}

/* Interactive tabs with enhanced styling */
.login-panel-tabs {
    display: flex;
    margin-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    padding-top: 5px;
}

.login-panel-tabs:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, var(--dentist-blue), var(--dentist-orange));
    transform: scaleX(0.7);
    opacity: 0.3;
}

.login-panel-tabs button {
    flex: 1;
    background: none;
    border: none;
    padding: 15px;
    font-size: 16px;
    font-weight: 600;
    color: #999;
    cursor: pointer;
    position: relative;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    overflow: hidden;
}

.login-panel-tabs button i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.login-panel-tabs button:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 3px;
    background: var(--login-gradient);
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1;
}

.login-panel-tabs button.active {
    color: var(--dentist-blue);
}

.login-panel-tabs button.active:after {
    transform: scaleX(1);
}

.login-panel-tabs button:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 0;
    background: rgba(33, 147, 176, 0.05);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: height 0.5s ease;
    z-index: -1;
}

.login-panel-tabs button:hover:before {
    height: 200%;
}

.login-panel-tabs button:hover i {
    transform: scale(1.2);
}

/* Form containers with smooth transitions */
.login-form-container,
.signup-form-container {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.login-form-container.active,
.signup-form-container.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: fadeIn 0.5s ease forwards;
}

/* Form group styling */
.form-group {
    margin-bottom: 20px;
    position: relative;
    transition: all 0.3s ease;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-charcoal);
    font-size: 15px;
    transition: var(--transition-normal);
}

.form-group.focused label {
    color: var(--dentist-blue);
}

/* Form controls with interactive effects */
.form-control {
    width: 100%;
    padding: 15px 15px 15px 40px;
    border: 1px solid #eee;
    border-radius: var(--border-radius-md);
    font-size: 16px;
    transition: var(--transition-normal);
    background: #f9f9f9;
    color: var(--text-charcoal);
    position: relative;
}

.form-control:focus {
    border-color: var(--dentist-blue);
    background: white;
    box-shadow: 0 0 0 3px rgba(33, 147, 176, 0.1);
    outline: none;
}

.form-group i.input-icon {
    position: absolute;
    left: 15px;
    top: 41px; /* Adjusted to align with input */
    color: #999;
    transition: var(--transition-normal);
    font-size: 16px;
}

.form-group.focused i.input-icon {
    color: var(--dentist-blue);
}

/* Password input with toggle */
.password-input {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 5;
}

.toggle-password:hover {
    color: var(--dentist-blue);
}

/* Form options styling */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
}

/* Custom checkbox styling */
.remember-me {
    display: flex;
    align-items: center;
    color: #666;
    cursor: pointer;
    gap: 8px;
    position: relative;
}

.remember-me input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox-custom {
    position: relative;
    display: inline-block;
    width: 18px;
    height: 18px;
    background-color: #f1f1f1;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 1px solid #ddd;
}

.remember-me:hover .checkbox-custom {
    background-color: #e9f7fa;
    border-color: var(--dentist-light-blue);
}

.remember-me input:checked ~ .checkbox-custom {
    background-color: var(--dentist-blue);
    border-color: var(--dentist-blue);
}

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

.remember-me input:checked ~ .checkbox-custom:after {
    display: block;
}

/* Forgot password link */
.forgot-password {
    color: var(--dentist-blue);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    position: relative;
    font-weight: 500;
}

.forgot-password:before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--dentist-orange);
    transition: width 0.3s ease;
}

.forgot-password:hover {
    color: var(--dentist-orange);
    transform: translateX(3px);
}

.forgot-password:hover:before {
    width: 100%;
}

/* Enhanced button styling */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 28px;
    border-radius: var(--border-radius-xl);
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition-normal);
    cursor: pointer;
    text-decoration: none;
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn i {
    transition: transform 0.3s ease;
}

.btn-primary {
    background: var(--login-gradient);
    color: white;
    box-shadow: 0 6px 15px rgba(33, 147, 176, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(33, 147, 176, 0.4);
    background: var(--login-gradient-hover);
}

.btn-primary:hover i {
    transform: translateX(4px);
}

.btn-orange {
    background: var(--orange-gradient);
    color: white;
    box-shadow: 0 6px 15px rgba(255, 126, 95, 0.3);
}

.btn-orange:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 126, 95, 0.4);
}

.btn-orange:hover i {
    transform: translateX(4px);
}

.login-submit {
    width: 100%;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}

.login-submit:after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
    transform: rotate(45deg);
    transition: all 0.5s ease;
    z-index: 1;
    opacity: 0;
}

.login-submit:hover:after {
    animation: shine 1.5s infinite;
}

@keyframes shine {
    0% { 
        top: -50%;
        left: -50%;
        opacity: 0;
    }
    30% {
        opacity: 1;
    }
    100% { 
        top: 150%;
        left: 150%;
        opacity: 0;
    }
}

/* Terms and policy styling */
.terms-policy {
    font-size: 14px;
    margin-bottom: 20px;
    color: #666;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.terms-policy a {
    color: var(--dentist-blue);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.terms-policy a:before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--dentist-orange);
    transition: width 0.3s ease;
}

.terms-policy a:hover {
    color: var(--dentist-orange);
}

.terms-policy a:hover:before {
    width: 100%;
}

/* Custom checkbox for terms */
.terms-checkbox {
    position: relative;
    width: 18px;
    height: 18px;
    background-color: #f1f1f1;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 1px solid #ddd;
    margin-top: 2px;
    flex-shrink: 0;
}

.terms-policy input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.terms-policy:hover .terms-checkbox {
    background-color: #e9f7fa;
    border-color: var(--dentist-light-blue);
}

.terms-policy input:checked ~ .terms-checkbox {
    background-color: var(--dentist-blue);
    border-color: var(--dentist-blue);
}

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

.terms-policy input:checked ~ .terms-checkbox:after {
    display: block;
}

/* Enhanced social login section */
.social-login {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid #f0f0f0;
    position: relative;
    margin-top: 25px;
}

.social-login:before {
    content: 'OR';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 0 15px;
    color: #999;
    font-size: 12px;
}

.social-login p {
    font-size: 14px;
    color: #999;
    margin-bottom: 15px;
}

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

.social-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
    background: white;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    position: relative;
    overflow: hidden;
}

.social-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.social-btn:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(0,0,0,0.05);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.social-btn:hover:before {
    width: 100%;
    height: 100%;
}

.social-btn.google:hover {
    color: #DB4437;
    border-color: #DB4437;
}

.social-btn.facebook:hover {
    color: #4267B2;
    border-color: #4267B2;
}

.social-btn.apple:hover {
    color: #000;
    border-color: #000;
}

/* Alert styling */
.alert {
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: var(--border-radius-md);
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    animation: fadeIn 0.3s ease forwards;
}

.alert i {
    font-size: 16px;
    margin-top: 2px;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.08);
    color: #dc3545;
    border-left: 4px solid #dc3545;
}

/* Bottom decorative element */
.dental-bottom-element {
    position: relative;
    padding-top: 20px;
    text-align: center;
}

.dental-svg-bottom {
    width: 100%;
    height: auto;
    display: block;
}

.dental-motivational {
    position: absolute;
    bottom: 15px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 14px;
    color: rgba(33, 147, 176, 0.7);
    font-style: italic;
    font-weight: 500;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from { 
        opacity: 0;
        transform: translateY(-20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pulse Animation for buttons */
.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(33, 147, 176, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(33, 147, 176, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(33, 147, 176, 0);
    }
}

/* Ripple effect for buttons */
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .welcome-section {
        padding: 25px 20px;
        margin-bottom: 30px;
    }
    
    .welcome-text {
        font-size: 28px;
    }

    .welcome-section p {
        font-size: 16px;
    }

    .dashboard-card {
        margin: 0 15px;
    }
    
    .login-panel-content {
        padding: 0 20px 25px;
    }
}

@media (max-width: 576px) {
    .login-container {
        padding: 20px 15px;
    }
    
    .welcome-text {
        font-size: 24px;
    }

    .welcome-section p {
        font-size: 15px;
    }
    
    .login-panel-content {
        padding: 0 15px 20px;
    }
    
    .login-panel-tabs button {
        padding: 12px 10px;
        font-size: 14px;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .form-control {
        padding: 14px 14px 14px 40px;
        font-size: 15px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
}

/* Make sure elements fit on one screen on smaller devices */
@media (max-height: 700px) {
    .welcome-section {
        padding: 20px 15px;
        margin-bottom: 20px;
    }
    
    .welcome-text {
        font-size: 22px;
        margin-bottom: 10px;
    }
    
    .welcome-section p {
        font-size: 14px;
        margin-top: 15px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-control {
        padding: 12px 12px 12px 40px;
    }
    
    .dental-bottom-element {
        padding-top: 15px;
    }
}