/* Main Stylesheet */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --light-bg: #f8f9fa;
    --border-color: #ddd;
    --text-color: #333;
    --light-text: #666;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ffffff;
    color: var(--text-color);
    line-height: 1.6;
    overflow: hidden;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 5px 0;
    box-shadow: var(--shadow);
    position: relative;
}

.header-container {
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    flex-wrap: wrap;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    margin-left: 10px;
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.lit-logo {
    height: 70px;
    width: auto;
    max-width: 100%;
}

#logoText {
    margin-left: 15px;
    font-size: 18px;
    white-space: nowrap;
}

.user-info {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.user-info span {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.logout-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 10px;
    transition: all 0.3s ease;
    font-size: 14px;
    white-space: nowrap;
}

.logout-btn:hover {
    background: #c0392b;
    transform: scale(1.05);
}

.dashboard-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 13px;
    white-space: nowrap;
}

.dashboard-btn:hover {
    background: #5568d3;
    transform: scale(1.05);
}

/* Hamburger Menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    transform: scale(1.1);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 90px;
    right: 0;
    background: var(--primary-color);
    border-top: 3px solid var(--secondary-color);
    padding: 15px;
    border-radius: 0 0 8px 8px;
    box-shadow: var(--shadow);
    z-index: 999;
    min-width: 200px;
}

.mobile-menu.show {
    display: flex;
}

.mobile-menu-item {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: right;
}

.mobile-menu-item:last-child {
    border-bottom: none;
}

.mobile-menu-item a,
.mobile-menu-item span {
    color: white;
    text-decoration: none;
    font-size: 14px;
    display: block;
}

.mobile-menu-item a:hover {
    color: var(--secondary-color);
}

/* Container */
.container {
    margin: 0 auto;
    display: flex;
}

.college-profile {
    flex: 1;
    background: white;
    box-shadow: var(--shadow);
    margin-right: 20px;
    width: 70%;
}
.college-image {
    width: 100%;
    object-fit: cover;
}

/* Forms */
.form-wrapper {
    background: white;
    padding: 20px;
    width: 30%;
    position: relative;
    border-radius: 12px;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 14px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* Radio and Checkbox */
.checkbox-group,
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.checkbox-item,
.radio-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

input[type="checkbox"],
input[type="radio"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: var(--secondary-color);
}

.checkbox-item label,
.radio-item label {
    margin: 0;
    font-weight: 400;
}

/* Buttons */
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color), #2980b9);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.btn-secondary {
    background: var(--light-bg);
    color: var(--primary-color);
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background: var(--secondary-color);
    color: white;
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover {
    background: #229954;
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--accent-color);
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-toggle {
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease !important;
    padding: 12px 30px !important;
}

.btn-toggle:hover {
    background: #2c3e50 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

/* Steps Navigation */
.steps-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--light-bg);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.step.completed .step-number {
    background: var(--success-color);
    color: white;
    border-color: var(--success-color);
}

.step-number::before {
    content: '✓';
    position: absolute;
    display: none;
}

.step.completed .step-number::before {
    display: block;
    font-size: 20px;
}

.step.completed .step-number {
    font-size: 0;
}

.step-title {
    font-size: 13px;
    color: var(--light-text);
    margin-top: 8px;
}

.step.active .step-title {
    color: var(--secondary-color);
    font-weight: 600;
}

/* Progress Bar */
.progress-bar-container {
    height: 4px;
    background: var(--light-bg);
    border-radius: 2px;
    margin: 15px 0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-color), var(--success-color));
    width: 0%;
    transition: width 0.3s ease;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.modal-body {
    margin-bottom: 20px;
}

.modal-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.close-modal {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 20px;
    color: var(--light-text);
}

/* Alerts */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    animation: slideIn 0.3s ease;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.alert-close {
    float: right;
    cursor: pointer;
    font-weight: bold;
}

/* Dashboard */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.dashboard-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.card-title {
    font-size: 16px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.card-value {
    font-size: 24px;
    font-weight: bold;
    color: var(--secondary-color);
}

.card-status {
    font-size: 12px;
    color: var(--light-text);
    margin-top: 8px;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 10px;
}

.status-incomplete {
    background: #fff3cd;
    color: #856404;
}

.status-submitted {
    background: #d1ecf1;
    color: #0c5460;
}

.status-review {
    background: #e7d4f5;
    color: #5e2750;
}

.status-approved {
    background: #d4edda;
    color: #155724;
}

.status-rejected {
    background: #f8d7da;
    color: #721c24;
}

/* File Upload */
.file-upload-area {
    border: 2px dashed var(--secondary-color);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(52, 152, 219, 0.05);
}

.file-upload-area:hover {
    background: rgba(52, 152, 219, 0.1);
    border-color: #2980b9;
}

.file-upload-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.file-upload-area input[type="file"] {
    display: none;
}

.uploaded-files {
    margin-top: 20px;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--light-bg);
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.file-name {
    flex: 1;
    word-break: break-all;
}

.file-size {
    color: var(--light-text);
    font-size: 12px;
    margin-left: 10px;
}

.file-actions {
    display: flex;
    gap: 8px;
    margin-left: 10px;
}

.btn-delete {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
}

/* Responsive - Tablets (768px and below) */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .form-wrapper {
        padding: 15px;
    }

    /* Header Responsive */
    .header-container {
        padding: 0 10px;
    }

    .logo {
        flex: 0 0 auto;
        margin-left: 5px;
    }

    .lit-logo {
        height: 55px;
    }

    #logoText {
        display: none;
    }

    .user-info {
        gap: 8px;
    }

    .user-info span {
        font-size: 12px;
    }

    .logout-btn {
        padding: 6px 10px;
        font-size: 12px;
    }

    .dashboard-btn {
        padding: 6px 10px;
        font-size: 12px;
    }

    .menu-toggle {
        display: none;
    }

    .steps-container {
        flex-wrap: wrap;
    }

    .step {
        flex: 0 0 calc(33.333% - 10px);
    }

    .btn-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .checkbox-group,
    .radio-group {
        flex-direction: column;
        gap: 12px;
    }

    /* Mobile-friendly index.php layout */
    .college-profile {
        display: none;
    }

    .container {
        background: linear-gradient(135deg, rgba(44, 62, 80, 0.85) 0%, rgba(52, 152, 219, 0.85) 100%),
                    url('../img/lit-new-building.png') center/cover no-repeat fixed;
        min-height: 100vh;
        align-items: center;
        justify-content: center;
    }

    .form-wrapper {
        width: 100%;
        max-width: 500px;
        margin: 20px;
    }
}

/* Responsive - Mobile (576px and below) */
@media (max-width: 576px) {
    header {
        padding: 5px 0;
    }

    .header-container {
        padding: 8px 10px;
        justify-content: space-between;
        min-height: 70px;
    }

    .logo {
        flex: 0 0 auto;
        margin-left: 0;
    }

    .lit-logo {
        height: 50px;
    }

    #logoText {
        display: none;
        font-size: 14px;
    }

    .user-info {
        gap: 5px;
        margin-right: 5px;
    }

    .user-info span {
        display: none;
    }

    .logout-btn {
        padding: 5px 8px;
        font-size: 11px;
        margin-right: 3px;
    }

    .dashboard-btn {
        display: none;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        padding: 6px;
    }

    .mobile-menu {
        top: 70px;
        right: 0;
        left: 0;
        border-radius: 0;
        min-width: unset;
    }

    /* Mobile-friendly index.php layout */
    .college-profile {
        display: none;
    }

    .container {
        background: linear-gradient(135deg, rgba(44, 62, 80, 0.85) 0%, rgba(52, 152, 219, 0.85) 100%),
                    url('../img/lit-new-building.png') center/cover no-repeat fixed;
        min-height: 100vh;
        align-items: center;
        justify-content: center;
        padding: 10px;
        flex-direction: column;
    }

    .form-wrapper {
        width: 100%;
        max-width: 450px;
        padding: 12px;
        margin: 20px auto;
    }

    .steps-container {
        flex-wrap: wrap;
    }

    .step {
        flex: 0 0 calc(50% - 5px);
    }

    .btn {
        width: 100%;
        padding: 8px 15px !important;
        font-size: 12px !important;
    }

    .btn-group {
        flex-direction: column;
        gap: 8px;
    }

    .checkbox-group,
    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
}

/* Extra Small Mobile (360px and below) */
@media (max-width: 360px) {
    .header-container {
        min-height: 65px;
        padding: 6px 8px;
    }

    .lit-logo {
        height: 45px;
    }

    .logout-btn {
        padding: 4px 6px;
        font-size: 10px;
        margin-right: 2px;
    }

    .menu-toggle {
        font-size: 18px;
        padding: 5px;
    }

    .mobile-menu {
        top: 65px;
    }

    .college-profile {
        display: none;
    }

    .container {
        min-height: 100vh;
        align-items: center;
        justify-content: center;
        padding: 5px;
    }

    .form-wrapper {
        width: 100%;
        max-width: 320px;
        margin: 15px auto;
    }

    .btn {
        padding: 6px 12px !important;
        font-size: 11px !important;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.3s ease;
}

/* Loading Spinner */
.loader {
    border: 4px solid var(--light-bg);
    border-top: 4px solid var(--secondary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 30px;
    background: var(--light-bg);
    border-radius: 8px;
    margin: 20px 0;
}

.success-icon {
    font-size: 48px;
    color: var(--success-color);
    margin-bottom: 10px;
}

.success-message p {
    color: var(--light-text);
    margin-bottom: 15px;
}

/* Print Styles */
@media print {
    header, .logout-btn, .btn-group {
        display: none;
    }

    .form-wrapper {
        box-shadow: none;
        border: 1px solid var(--border-color);
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-muted {
    color: var(--light-text);
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.p-20 {
    padding: 20px;
}

.hidden {
    display: none !important;
}

/* ============================= */
/* MODERN BOOK FLIP ANIMATIONS */
/* ============================= */

/* Slider Toggle Navigation */
.tab-slider {
    position: relative;
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ecf0f1 0%, #bdc3c7 100%);
    padding: 4px;
    border-radius: 50px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    height: 60px;
}

.slider-track {
    position: absolute;
    left: 4px;
    top: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background: linear-gradient(135deg, var(--secondary-color) 0%, #2980b9 100%);
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
    z-index: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: translateX(0);
}

.slider-thumb {
    width: 100%;
    height: 100%;
}

.slider-btn {
    flex: 1;
    padding: 14px 20px;
    background: transparent;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.slider-icon {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.slider-label {
    transition: color 0.3s ease;
}

.slider-btn.active {
    color: white;
}

.slider-btn.active .slider-icon {
    transform: scale(1.1);
}

.slider-btn:hover {
    transform: scale(0.98);
}

/* Form Flip Container */
.form-flip-container {
    perspective: 1200px;
    position: relative;
    min-height: 500px;
}

/* Form Panels */
.form-panel {
    position: absolute;
    width: 100%;
    left: 0;
    top: 0;
    background: white;
    padding: 20px;
    border-radius: 12px;
    animation-duration: 0.5s;
    animation-timing-function: ease-out;
    transform-origin: center;
    transition: none;
}

.register-panel {
    animation: slideInFromLeft 0.5s ease-out forwards;
    z-index: 2;
}

.login-panel {
    animation: slideOutToLeft 0.5s ease-out forwards;
    z-index: 1;
}

/* Flip to Login */
.form-flip-container.flip-to-login .register-panel {
    animation: slideOutToLeft 0.5s ease-out forwards;
    z-index: 1;
}

.form-flip-container.flip-to-login .login-panel {
    animation: slideInFromRight 0.5s ease-out forwards;
    z-index: 2;
}

/* Flip to Register */
.form-flip-container.flip-to-register .register-panel {
    animation: slideInFromLeft 0.5s ease-out forwards;
    z-index: 2;
}

.form-flip-container.flip-to-register .login-panel {
    animation: slideOutToRight 0.5s ease-out forwards;
    z-index: 1;
}

/* Slide In from Left Animation */
@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-60px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Slide In from Right Animation */
@keyframes slideInFromRight {
    0% {
        opacity: 0;
        transform: translateX(60px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Slide Out to Left Animation */
@keyframes slideOutToLeft {
    0% {
        opacity: 1;
        transform: translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-60px);
    }
}

/* Slide Out to Right Animation */
@keyframes slideOutToRight {
    0% {
        opacity: 1;
        transform: translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateX(60px);
    }
}

/* Form Panel Headings */
.form-panel h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 700;
    animation: none;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Group Animation - Removed staggered animations */
.form-panel .form-group {
    animation: none;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button Animation */
.form-panel .btn {
    animation: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.form-panel .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.form-panel .btn:active::before {
    width: 300px;
    height: 300px;
}

/* Form Footer */
.form-footer {
    text-align: center;
    margin-top: 15px;
    color: var(--light-text);
    animation: none;
}

.form-footer a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.form-footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.form-footer a:hover::after {
    width: 100%;
}

/* Input Focus Animation */
.form-panel input[type="text"],
.form-panel input[type="email"],
.form-panel input[type="password"],
.form-panel input[type="tel"] {
    position: relative;
    background: linear-gradient(to right, white 0%, #f8f9fa 100%);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.form-panel input[type="text"]::placeholder,
.form-panel input[type="email"]::placeholder,
.form-panel input[type="password"]::placeholder,
.form-panel input[type="tel"]::placeholder {
    color: #999;
    transition: color 0.3s ease;
}

.form-panel input[type="text"]:focus,
.form-panel input[type="email"]:focus,
.form-panel input[type="password"]:focus,
.form-panel input[type="tel"]:focus {
    background: linear-gradient(to right, #f8f9fa 0%, white 100%);
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1), 0 0 15px rgba(52, 152, 219, 0.2);
    transform: translateY(-2px);
}

/* Smooth label styling */
.form-panel label {
    animation: fadeInLeft 0.6s ease backwards;
    position: relative;
    transition: all 0.3s ease;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Small text animation */
.form-panel small {
    display: block;
    animation: fadeInUp 0.6s ease 0.4s backwards;
    font-size: 12px;
    color: var(--light-text);
    margin-top: 6px;
}

/* Verification Form Styling */
#verificationForm {
    background: white;
    padding: 20px;
    width: 100%;
    border-radius: 12px;
}

#verificationForm h2 {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.verification-step {
    padding: 15px 0;
}

.verification-step p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

#emailOTP {
    font-size: 18px;
    letter-spacing: 5px;
    text-align: center;
    font-weight: bold;
}

.btn-success {
    background: var(--success-color);
    border-color: var(--success-color);
    color: white;
}

.btn-success:hover {
    background: #229954;
    border-color: #229954;
}

.btn-secondary {
    background: var(--warning-color);
    border-color: var(--warning-color);
    color: white;
}

.btn-secondary:hover {
    background: #e67e22;
    border-color: #e67e22;
}

#verificationComplete {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive Animation Adjustments */
@media (max-width: 768px) {
    .form-flip-container {
        min-height: 600px;
    }

    .slider-btn {
        padding: 12px 16px;
        font-size: 14px;
    }

    .slider-icon {
        font-size: 16px;
    }

    .form-panel {
        padding: 20px;
    }

    .form-panel h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }

    @keyframes slideInFromLeft {
        0% {
            opacity: 0;
            transform: translateX(-80px) rotateY(30deg);
        }
        100% {
            opacity: 1;
            transform: translateX(0) rotateY(0deg);
        }
    }

    @keyframes slideOutToRight {
        0% {
            opacity: 1;
            transform: translateX(0) rotateY(0deg);
        }
        100% {
            opacity: 0;
            transform: translateX(80px) rotateY(-30deg);
        }
    }
}
