/* ========================================
   JSkin Login & Signup Styles
   ======================================== */

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f8fafc;
    min-height: 100vh;
    display: flex;
    overflow-x: hidden;
    overflow-y: auto;
}

/* ========================================
   Main Container & Layout
   ======================================== */

.main-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
    align-items: stretch;
    flex-wrap: wrap;
}



/* ========================================
   Left Side - Animation Panel
   ======================================== */

.animation-panel {
    flex: 1;
    background: linear-gradient(135deg, #f4f4f4 -9%, #88e6e3 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

/* Animated Elements */
.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(61, 195, 200, 0.581);
    animation: float 6s ease-in-out infinite;
}

.shape:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape:nth-child(2) {
    width: 120px;
    height: 120px;
    top: 60%;
    left: 20%;
    animation-delay: 2s;
}

.shape:nth-child(3) {
    width: 60px;
    height: 60px;
    top: 30%;
    right: 15%;
    animation-delay: 4s;
}

.shape:nth-child(4) {
    width: 100px;
    height: 100px;
    bottom: 20%;
    right: 25%;
    animation-delay: 1s;
}

.shape:nth-child(5) {
    width: 40px;
    height: 40px;
    top: 10%;
    right: 40%;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 1;
    }
}

/* Pulsing Circles */
.pulse-circles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.pulse-circle {
    position: absolute;
    border: 2px solid rgba(169, 166, 166, 0.3);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
}

.pulse-circle:nth-child(1) {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 0s;
}

.pulse-circle:nth-child(2) {
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 1s;
}

.pulse-circle:nth-child(3) {
    width: 400px;
    height: 400px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 2s;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0;
    }
}

/* Content in Animation Panel */
.animation-content {
    text-align: center;
    color: rgb(0, 0, 0);
    z-index: 10;
    position: relative;
    width: 100%;
    max-width: 400px;
    padding: 0 2rem;
}



.animation-content h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    animation: slideInLeft 1s ease-out 0.2s both;
}

.animation-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 400px;
    line-height: 1.6;
    animation: slideInLeft 1s ease-out 0.4s both;
}

.clinic-features {
    margin-top: 2rem;
    animation: slideInLeft 1s ease-out 0.6s both;
}

.feature-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 10px 0;
    font-size: 1rem;
}

.feature-item i {
    font-size: 1.2rem;
    color: #000000;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========================================
   Right Side - Form Panel
   ======================================== */

.form-panel {
    flex: 1;
    background: #88e6e3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow-y: auto;
    min-width: 0;
}

/* Login Container */
.login-container {
    width: 100%;
    max-width: 400px;
    animation: slideInRight 0.8s ease-out;
}

/* Signup Container */
.signup-container {
    width: 100%;
    max-width: 500px;
    animation: slideInRight 0.8s ease-out;
    margin: 0 auto;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========================================
   Headers
   ======================================== */

.login-header,
.signup-header {
    text-align: center;
    margin-bottom: 40px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.logo img {
    height: 80px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.login-title,
.signup-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 8px;
}

.login-subtitle,
.signup-subtitle {
    color: #718096;
    font-size: 1.1rem;
    line-height: 1.5;
}

/* ========================================
   Form Styles
   ======================================== */

.login-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.signup-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.password-row {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    position: relative;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.input-container {
    position: relative;
}

.input-container i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.form-group input {
    width: 100%;
    padding: 18px 18px 18px 50px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    color: #2d3748;
    background: #f7fafc;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:focus {
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.form-group input:focus + .input-container i {
    color: #667eea;
}

.form-group input::placeholder {
    color: #a0aec0;
    font-weight: 400;
}

/* ========================================
   Buttons
   ======================================== */

.login-btn,
.signup-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 18px 24px;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin: 10px auto 0;
    max-width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-btn{
  width: 100%;
  max-width: 100%;
}

.signup-btn {
    margin-top: 20px;
    grid-column: 1 / -1;
    width: 100%;
}

.login-btn::before,
.signup-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.login-btn:hover,
.signup-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.4);
}

.login-btn:hover::before,
.signup-btn:hover::before {
    left: 100%;
}

.login-btn:active,
.signup-btn:active {
    transform: translateY(-1px);
}

/* ========================================
   Links & Navigation
   ======================================== */

.signup-section,
.login-section {
    text-align: center;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #e2e8f0;
}

.signup-text,
.login-text {
    color: #718096;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.signup-btn-link,
.login-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #667eea;
    padding: 12px 24px;
    border: 2px solid #667eea;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.signup-btn-link:hover,
.login-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* Google OAuth Button */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0;
    color: #718096;
    font-size: 0.875rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}

.divider span {
    padding: 0 16px;
    font-weight: 500;
}

.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px 24px;
    background: #ffffff;
    color: #3c4043;
    border: 1px solid #dadce0;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.google-btn:hover {
    background: #f8f9fa;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-color: #d1d5db;
}

.google-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.google-btn svg {
    flex-shrink: 0;
}

.google-btn span {
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Back to Home */
.back-home {
    position: absolute;
    top: 20px;
    left: 20px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    z-index: 3;
}

.back-home:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* ========================================
   Password Strength Indicator
   ======================================== */

.password-strength {
    margin-top: 8px;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-weak { background: #e53e3e; }
.strength-medium { background: #ed8936; }
.strength-strong { background: #38a169; }

.password-strength-text {
    font-size: 0.8rem;
    margin-top: 4px;
    color: #718096;
}

/* ========================================
   Checkbox Styling
   ======================================== */

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 8px;
}

.checkbox-container input[type="checkbox"] {
    margin: 0; 
    width: 16px;
    height: 16px;
}

.checkbox-container .checkmark {
    user-select: none;
}

/* ========================================
   Messages & Validation
   ======================================== */

.error-message {
    background: #fed7d7;
    color: #c53030;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    border-left: 4px solid #e53e3e;
    display: none;
}

.success-message {
    background: #c6f6d5;
    color: #2f855a;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    border-left: 4px solid #38a169;
    display: none;
}

.field-error {
    color: #e53e3e;
    font-size: 0.8rem;
    margin-top: 4px;
    display: block;
}

/* Form Validation Styles */
.form-group.error input {
    border-color: #e53e3e;
    background: #fed7d7;
}

.form-group.success input {
    border-color: #38a169;
    background: #c6f6d5;
}

/* ========================================
   Loading States
   ======================================== */

.loading {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: white;
}

.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Loading Modal */
.loading-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.loading-card {
    background: white;
    padding: 40px 50px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    text-align: center;
    max-width: 400px;
    width: 90%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease-out;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-top-color: #88e6e3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loading-text {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
}

.loading-subtitle {
    font-size: 14px;
    color: #718096;
    margin-bottom: 20px;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 1024px) {
    .animation-content h1 {
        font-size: 2.5rem;
    }
    
    .animation-content p {
        font-size: 1rem;
    }
    
    .form-panel {
        padding: 2rem 1.5rem;
    }
}

/* Additional mobile optimizations */
@media (max-width: 375px) {
    .animation-panel {
        min-height: 150px;
        max-height: 180px;
        padding: 0.75rem;
    }
    
    .form-panel {
        padding: 1.25rem 0.75rem;
    }
    
    .animation-content h1 {
        font-size: 1.2rem;
    }
    
    .animation-content p {
        font-size: 0.75rem;
    }
    
    .login-title,
    .signup-title {
        font-size: 1.4rem;
    }
    
    .form-group input {
        padding: 12px 12px 12px 40px;
        font-size: 0.9rem;
    }
    
    .input-container i {
        left: 12px;
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    body {
        overflow-y: auto;
    }
    
    .main-container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }
    
    .main-container.slide-left {
        transform: translateX(-100%);
    }
    
    .welcome-panel {
        right: -100%;
        width: 100%;
    }
    
    .animation-panel {
        flex: 0 0 auto;
        min-height: 250px;
        max-height: 300px;
        padding: 1.5rem;
    }
    
    .form-panel {
        flex: 1 1 auto;
        padding: 2rem 1.5rem;
        min-height: calc(100vh - 250px);
    }
    
    .animation-content {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .animation-content h1 {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    
    .animation-content p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .clinic-features {
        display: none;
    }
    
    .login-container,
    .signup-container {
        max-width: 100%;
        width: 100%;
    }
    
    .login-header,
    .signup-header {
        margin-bottom: 30px;
    }
    
    .login-title,
    .signup-title {
        font-size: 1.8rem;
    }
    
    .login-subtitle,
    .signup-subtitle {
        font-size: 0.95rem;
    }
    
    .signup-form {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .password-row {
        grid-template-columns: 1fr;
    }
    
    .form-group {
        width: 100%;
    }
    
    .login-btn,
    .signup-btn {
        width: 100%;
        max-width: 100%;
        margin: 10px 0 0 0;
    }
    
    .google-btn {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .signup-section,
    .login-section {
        margin-top: 20px;
        padding-top: 20px;
    }
    
    .signup-btn-link {
        width: 100%;
        justify-content: center;
    }
    
    .floating-shapes {
        display: none;
    }
    
    .pulse-circles {
        display: none;
    }
}

@media (max-width: 480px) {
    body {
        overflow-y: auto;
    }
    
    .main-container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }
    
    .animation-panel {
        flex: 0 0 auto;
        min-height: 180px;
        max-height: 220px;
        padding: 1rem;
    }
    
    .form-panel {
        flex: 1 1 auto;
        padding: 1.5rem 1rem;
        min-height: calc(100vh - 180px);
    }
    
    .animation-content {
        padding: 0 0.5rem;
    }
    
    .animation-content h1 {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
    }
    
    .animation-content p {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }
    
    .login-header,
    .signup-header {
        margin-bottom: 25px;
    }
    
    .login-title,
    .signup-title {
        font-size: 1.6rem;
        margin-bottom: 5px;
    }
    
    .login-subtitle,
    .signup-subtitle {
        font-size: 0.85rem;
    }
    
    .form-group {
        margin-bottom: 0;
    }
    
    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }
    
    .form-group input {
        padding: 14px 14px 14px 45px;
        font-size: 0.95rem;
        border-radius: 10px;
    }
    
    .input-container i {
        left: 15px;
        font-size: 1rem;
    }
    
    .login-form,
    .signup-form {
        gap: 18px;
    }
    
    .login-btn,
    .signup-btn {
        padding: 16px 20px;
        font-size: 1rem;
        border-radius: 10px;
    }
    
    .google-btn {
        padding: 12px 20px;
        font-size: 0.95rem;
        border-radius: 10px;
    }
    
    .divider {
        margin: 20px 0;
        font-size: 0.8rem;
    }
    
    .signup-section,
    .login-section {
        margin-top: 15px;
        padding-top: 15px;
    }
    
    .signup-text,
    .login-text {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }
    
    .signup-btn-link {
        padding: 10px 20px;
        font-size: 0.95rem;
        border-radius: 10px;
    }
    
    .error-message,
    .success-message {
        padding: 10px 14px;
        font-size: 0.85rem;
        margin-bottom: 15px;
    }
    
    .checkbox-container {
        font-size: 0.8rem;
        margin-top: 6px;
    }
    
    .loading-card {
        padding: 30px 25px;
        width: 95%;
    }
    
    .loading-text {
        font-size: 16px;
    }
    
    .loading-subtitle {
        font-size: 13px;
    }
}

