@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #4a90e2;
    --primary-dark: #2c5fba;
    --text-dark: #333;
    --text-light: #777;
    --bg-light: #f5f7fa;
    --white: #fff;
    --border-color: #ddd;
    --shadow-color: rgba(0, 0, 0, 0.05);
    --animation-duration: 1s;
    --success-color: #28a745;
    --error-color: #dc3545;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-dark);
    background-color: var(--bg-light);
    min-height: 100vh;
}

.homeBtn {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 10;
}

.homeBtn a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: transparent;
    color: black;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.homeBtn a:hover {
    background-color: #0097a7;
    transform: translateX(-5px);
    color: white;
    transition: all 0.3s ease;
    filter: brightness(1.2);
}

.homeBtn i {
    font-size: 14px;
}

.homeBtn img {
    width: 20px;
    height: auto;
    margin-right: 5px;
}

.container {
    display: flex;
    min-height: 100vh;
    width: 100%;
    overflow-y: auto;
    background-image: url('/img/FutureCareBG3.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.background-blur {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/img/FutureCareBG3.jpg');

    background-size: cover;
    background-position: center;
    filter: blur(6px);
    z-index: -1;
}

/* Brand/Logo */
.brandText {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.brandText a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.brandText img.logo {
    width: 300px;
    height: auto;
    margin-right: 10px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.brandText img.logo:hover {
    transform: scale(1.05);
}

.brandText h1 {
    font-size: 34px;
    font-weight: 700;
    color: #377CE3;
    margin: 0;
    display: inline;
}

.brandText h1:last-of-type {
    color: #FFA500;
}

/* Right panel layout */
.right-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 3rem 2rem;
    background-color: rgba(255, 255, 255, 0.9);
    position: relative;
    box-shadow: inset 0 0 20px var(--shadow-color);
    animation: fadeIn var(--animation-duration) ease-out 0.3s both;
    overflow-y: auto;
    max-height: 100vh;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.form-wrapper {
    width: 100%;
    max-width: 600px; /* Increased width for registration form */
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 30px var(--shadow-color);
    background-color: rgba(255, 255, 255, 0.85);
    animation: scaleIn 0.5s ease-out 0.4s both;
    margin-top: 0.5rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

@keyframes scaleIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Step Indicator Styles */
.step-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    padding: 0 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.step {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #666;
    transition: all 0.3s ease;
}

.step-number {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.step.active {
    color: var(--primary-color);
    font-weight: 600;
}

.step.active .step-number {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.step.completed {
    color: var(--success-color);
}

.step.completed .step-number {
    background: var(--success-color);
    color: white;
    border-color: var(--success-color);
}

.step.completed .step-number::after {
    content: '✓';
    font-size: 12px;
}

/* Step Content Styles */
.step-content {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.step-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-title {
    margin-bottom: 25px;
    color: var(--text-dark);
    font-size: 1.5rem;
    font-weight: 600;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 10px;
    text-align: center;
}

/* Form Navigation Styles */
.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.btn-back {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-next {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-next:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.btn-submit {
    background: var(--success-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

/* Error Styles */
.error-message {
    color: var(--error-color);
    font-size: 13px;
    margin-top: 5px;
    font-weight: 500;
    display: block;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: var(--error-color);
    background-color: rgba(220, 53, 69, 0.05);
}

.form-group.error label {
    color: var(--error-color);
}

.terms.error {
    color: var(--error-color);
}

.terms.error label {
    color: var(--error-color);
}

/* Existing form styles */
.tabs {
    display: flex;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(238, 238, 238, 0.6);
}

.tab {
    flex: 1;
    text-align: center;
    padding: 1rem 0;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-light);
    position: relative;
    transition: all 0.3s ease;
}

.tab.active {
    color: var(--primary-color);
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    animation: slideInFromLeft 0.3s ease;
}

@keyframes slideInFromLeft {
    from {
        transform: scaleX(0);
        transform-origin: left;
    }
    to {
        transform: scaleX(1);
        transform-origin: left;
    }
}

#alert-container {
    margin-bottom: 1.5rem;
}

.form-container {
    display: none;
    opacity: 0;
    transform: translateY(10px);
}

.form-container.active {
    display: block;
    animation: fadeUp 0.5s ease-out forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #555;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.9);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
    background-color: rgba(255, 255, 255, 1);
}

.form-control:read-only {
    background-color: #f8f9fa;
    color: #6c757d;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.remember-me, .terms {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    gap: 0.5rem;
}

.remember-me input, .terms input {
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.terms label {
    line-height: 1.4;
}

.terms a {
    color: var(--primary-color);
    text-decoration: none;
}

.terms a:hover {
    text-decoration: underline;
}

.btn {
    display: block;
    width: 100%;
    padding: 0.9rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.2);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s ease-out;
}

.btn:active::after {
    transform: translate(-50%, -50%) scale(3);
    opacity: 0;
}

.forgot-password {
    display: block;
    text-align: center;
    margin: 1.5rem 0;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.forgot-password:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.form-footer {
    margin-top: 1.5rem;
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

.form-footer a {
    color: var(--primary-color);
    text-decoration: none;
}

.form-footer a:hover {
    text-decoration: underline;
}

.doctor-login-link {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.btn-secondary {
    background-color: #FFA500;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background-color: #FF8C00;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-secondary:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Alert styles */
.alert {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    animation: slideInFromTop 0.5s ease-out;
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-error {
    background-color: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    border-left: 4px solid var(--error-color);
}

.alert-success {
    background-color: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
    border-left: 4px solid var(--success-color);
}

/* Responsive Design */
@media (max-width: 992px) {
    .container {
        flex-direction: column;
        overflow-y: auto;
        height: auto;
    }
    
    body {
        overflow: auto;
    }
    
    .right-panel {
        padding: 2.5rem 1.5rem;
        box-shadow: none;
        max-height: none;
    }
    
    .brandText {
        margin-top: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .brandText img.logo {
        width: 250px;
        height: auto;
    }
    
    .form-wrapper {
        margin: 2rem 0;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .right-panel {
        padding: 2rem 1.25rem;
    }
    
    .brandText {
        margin-bottom: 1.75rem;
    }
    
    .brandText img.logo {
        width: 200px;
        height: auto;
        margin-bottom: 0.75rem;
    }
    
    .form-wrapper {
        padding: 1.5rem;
        margin: 1rem auto;
    }
    
    .step-indicator {
        flex-wrap: wrap;
        gap: 10px;
        padding: 0 10px;
    }
    
    .step {
        margin: 5px;
        font-size: 12px;
    }
    
    .step-number {
        width: 30px;
        height: 30px;
        font-size: 12px;
        margin-right: 6px;
    }
    
    .step-title {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }
    
    .form-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-navigation > div {
        display: flex;
        gap: 15px;
        width: 100%;
    }
    
    .btn-back,
    .btn-next,
    .btn-submit {
        flex: 1;
        padding: 10px 16px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .container {
        height: auto;
        min-height: 100vh;
    }
    
    .right-panel {
        padding: 1.75rem 1rem;
    }
    
    .brandText {
        margin-bottom: 1.5rem;
    }
    
    .brandText img.logo {
        width: 180px;
        height: auto;
        margin-bottom: 0.5rem;
    }
    
    .form-wrapper {
        padding: 1.25rem;
        box-shadow: none;
        border: 1px solid rgba(255, 255, 255, 0.3);
        background-color: rgba(255, 255, 255, 0.8);
    }
    
    .step-indicator {
        gap: 8px;
        margin-bottom: 20px;
    }
    
    .step {
        font-size: 11px;
    }
    
    .step-number {
        width: 25px;
        height: 25px;
        font-size: 10px;
        margin-right: 4px;
    }
    
    .step-title {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
    .form-group {
        margin-bottom: 1.25rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
    }
    
    .form-control {
        padding: 0.7rem 0.9rem;
        font-size: 0.95rem;
    }
    
    .remember-me, .terms {
        font-size: 0.85rem;
    }
    
    .btn {
        padding: 0.75rem;
        font-size: 0.95rem;
    }
    
    .btn-back,
    .btn-next,
    .btn-submit {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .forgot-password {
        font-size: 0.85rem;
        margin: 1.25rem 0;
    }
    
    .form-footer {
        font-size: 0.85rem;
    }
}

@media (max-width: 400px) {
    .brandText img.logo {
        width: 150px;
        height: auto;
    }
    
    .form-wrapper {
        padding: 1rem;
    }
    
    .step-indicator {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .step {
        justify-content: center;
    }
    
    .step-title {
        font-size: 1.1rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-control {
        padding: 0.65rem 0.8rem;
    }
    
    .btn {
        padding: 0.7rem;
    }
}

/* Responsive styles for homeBtn */
@media screen and (max-width: 768px) {
    .homeBtn {
        top: 15px;
        left: 15px;
    }
    
    .homeBtn a {
        padding: 8px 15px;
        font-size: 14px;
    }
    
    .homeBtn i {
        font-size: 12px;
    }
    
    .homeBtn img {
        width: 16px;
        height: 8px;
    }
}

@media screen and (max-width: 480px) {
    .homeBtn {
        top: 10px;
        left: 10px;
    }
    
    .homeBtn a {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .homeBtn i {
        font-size: 10px;
    }
    
    .homeBtn img {
        width: 14px;
        height: 7px;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.001ms !important;
        animation-delay: 0.001ms !important;
        transition-duration: 0.001ms !important;
        transition-delay: 0.001ms !important;
    }
}

/* Focus styles for better accessibility */
.form-control:focus,
.btn:focus,
input[type="checkbox"]:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Loading state for buttons */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

.eye-icon {
    color: #bbb;
    opacity: 0.6;
    transition: color 0.2s, opacity 0.2s;
}
.eye-icon:hover {
    color: #888;
    opacity: 0.9;
}   

/* Hide Edge and IE password reveal button */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none !important;
}

/* Hide Chrome/Edge (Chromium) password reveal button */
input[type="password"]::-webkit-credentials-auto-fill-button,
input[type="password"]::-webkit-input-password-reveal-button {
    display: none !important;
    pointer-events: none;
    opacity: 0;
}

/* Hide Firefox's password reveal button (if any) */
input[type="password"]::-moz-password-reveal {
    display: none !important;
}   

#toggle-password {
    position: absolute;
    right: 16px;
    top: 70%;
    transform: translateY(-50%);
    cursor: pointer;
    height: 24px;
    display: flex;
    align-items: center;
}   