/* Modern & Elegant Login/Register CSS */
body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-family: 'Inter', 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

/* Overriding main.css specific page styles for Login/Register Pages */
.page {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    z-index: 1000;
}

.page .container-fluid {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.login-page {
    width: 100%;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.95);
    padding: 40px 40px;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.6s ease-out;
}

.register-page {
    width: 100%;
    max-width: 650px;
    /* Wider for 2-column layout */
    background: rgba(255, 255, 255, 0.95);
    padding: 30px 40px;
    /* Slightly Reduced padding */
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-title {
    text-align: center;
    margin-bottom: 25px;
    color: #2d3748;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.header-title span {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Form Group Layout */
.form-group {
    margin-bottom: 15px;
    /* Compact spacing */
}

/* Label & Icon Container */
.label-flex {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
    color: #4a5568;
    font-size: 13px;
    font-weight: 600;
    transition: color 0.3s;
}

.label-flex .glyphicon {
    margin-right: 8px;
    font-size: 13px;
    color: #764ba2;
}

/* Input Styling */
.form-control {
    width: 100%;
    height: 42px;
    /* Balanced height */
    padding: 8px 12px;
    font-size: 14px;
    color: #2d3748;
    background-color: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: none;
}

.form-control:focus {
    background-color: #fff;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

.form-group:focus-within .label-flex {
    color: #667eea;
}

.form-control::placeholder {
    color: #cbd5e0;
    font-weight: 400;
}

/* Button Styling */
.btn-custom {
    display: block;
    width: 100%;
    height: 45px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-top: 15px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(118, 75, 162, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(118, 75, 162, 0.5);
    opacity: 0.95;
    color: #fff;
}

/* Row fixes for Bootstrap 3 in this context if needed */
.row {
    margin-left: -10px;
    margin-right: -10px;
}

.col-md-6 {
    padding-left: 10px;
    padding-right: 10px;
}

/* Footer Link */
.footer-link {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: #718096;
}

.footer-link a {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
}