/* Modern Professional Login Page - Inspired by hashtagcreativa.co.za */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 1200px;
    min-height: 600px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: flex;
    position: relative;
}

/* Left Side - Image/Logo Section */
.login-container::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-image: url('https://images.unsplash.com/photo-1460925895917-afdab827c52f?w=800&h=600&fit=crop&crop=center');
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.login-container::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
    z-index: 2;
}

.left-panel {
    width: 50%;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
    z-index: 3;
}

.left-panel .logo {
    margin-bottom: 30px;
    animation: fadeInDown 0.8s ease;
}

.left-panel .logo img {
    max-width: 200px;
    height: auto;
    filter: brightness(0) invert(1);
}

.left-panel h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.left-panel p {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
    max-width: 400px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.left-panel .features {
    margin-top: 40px;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.left-panel .feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    opacity: 0.9;
}

.left-panel .feature-item i {
    margin-right: 10px;
    font-size: 1.2rem;
}

/* Right Side - Login Form */
.right-panel {
    width: 50%;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: white;
    position: relative;
    z-index: 3;
}

.login-box {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.right-panel .logo {
    text-align: center;
    margin-bottom: 30px;
    display: none; /* Hidden on desktop, shown on mobile */
}

.right-panel .logo img {
    height: 55px;
}

.card {
    background: transparent;
    border: none;
    box-shadow: none;
}

.body {
    padding: 0;
}

.login-form {
    animation: fadeInRight 0.8s ease;
}

.msg {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 1.3rem;
    font-weight: 500;
}

.input-group {
    position: relative;
    margin-bottom: 25px;
}

.input-group-addon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #667eea;
    z-index: 2;
}

.form-line {
    position: relative;
}

.form-control {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-control:focus {
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

.form-control::placeholder {
    color: #8a94a5;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bg-pink {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.bg-pink:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-block {
    width: 100%;
    display: block;
}

.row {
    display: flex;
    margin: 0 -10px;
}

.col-xs-8 {
    flex: 0 0 66.666667%;
    padding: 0 10px;
}

.col-xs-4 {
    flex: 0 0 33.333333%;
    padding: 0 10px;
}

.col-xs-6 {
    flex: 0 0 50%;
    padding: 0 10px;
}

.m-t-15 {
    margin-top: 15px;
}

.m-b--20 {
    margin-bottom: -20px;
}

.align-right {
    text-align: right;
}

.error {
    color: #dc3545;
    font-size: 0.9rem;
    margin-top: 10px;
    text-align: center;
    padding: 10px;
    background: #f8d7da;
    border-radius: 8px;
    display: none;
}

.error:not(:empty) {
    display: block;
}

a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
        max-width: 100%;
        min-height: auto;
        margin: 10px;
        border-radius: 15px;
    }

    .login-container::before,
    .login-container::after {
        display: none;
    }

    .left-panel {
        width: 100%;
        padding: 40px 20px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        min-height: 200px;
    }

    .left-panel h1 {
        font-size: 1.8rem;
    }

    .left-panel p {
        font-size: 1rem;
    }

    .left-panel .features {
        display: none;
    }

    .right-panel {
        width: 100%;
        padding: 40px 20px;
    }

    .right-panel .logo {
        display: block;
        margin-bottom: 20px;
    }

    .login-box {
        max-width: 100%;
    }

    .row {
        flex-direction: column;
    }

    .col-xs-8,
    .col-xs-4,
    .col-xs-6 {
        flex: 1;
        width: 100%;
        margin-bottom: 10px;
    }

    .msg {
        font-size: 1.1rem;
    }

    .welcome-section h1 {
        font-size: 24px;
    }

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

@media (max-width: 480px) {
    .login-page {
        padding: 10px;
    }

    .left-panel {
        padding: 30px 15px;
    }

    .right-panel {
        padding: 30px 15px;
    }

    .form-control {
        padding: 12px 12px 12px 40px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Waves Effect Compatibility */
.waves-effect {
    position: relative;
    cursor: pointer;
    display: inline-block;
    overflow: hidden;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    vertical-align: middle;
    z-index: 1;
    transition: .3s ease-out;
}

.waves-effect .waves-ripple {
    position: absolute;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    margin-left: -10px;
    opacity: 0;
    background: rgba(0, 0, 0, 0.2);
    transition: all 0.7s ease-out;
    transition-property: transform, opacity;
    transform: scale(0);
    pointer-events: none;
}

.waves-effect.waves-light .waves-ripple {
    background-color: rgba(255, 255, 255, 0.45);
}

.waves-effect.waves-red .waves-ripple {
    background-color: rgba(244, 67, 54, 0.70);
}

.waves-effect.waves-yellow .waves-ripple {
    background-color: rgba(255, 235, 59, 0.70);
}

.waves-effect.waves-orange .waves-ripple {
    background-color: rgba(255, 152, 0, 0.70);
}

.waves-effect.waves-purple .waves-ripple {
    background-color: rgba(156, 39, 176, 0.70);
}

.waves-effect.waves-green .waves-ripple {
    background-color: rgba(76, 175, 80, 0.70);
}

.waves-effect.waves-teal .waves-ripple {
    background-color: rgba(0, 150, 136, 0.70);
}

.waves-effect input[type="button"], .waves-effect input[type="reset"], .waves-effect input[type="submit"] {
    border: 0;
    font-style: normal;
    font-size: inherit;
    text-transform: inherit;
    background: none;
}

.waves-notransition {
    transition: none !important;
}

.waves-circle {
    transform: translateZ(0);
    -webkit-mask-image: -webkit-radial-gradient(circle, white 100%, black 100%);
}

.waves-input-wrapper {
    border-radius: 0.2em;
    vertical-align: bottom;
}

.waves-input-wrapper .waves-button-input {
    position: relative;
    top: 0;
    left: 0;
    z-index: 1;
}

.waves-circle {
    text-align: center;
    width: 2.5em;
    height: 2.5em;
    line-height: 2.5em;
    border-radius: 50%;
    -webkit-mask-image: none;
}

/* Loading state */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading .btn {
    position: relative;
}

.loading .btn::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Material Icons */
.material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

/* Welcome Section Styles */
.welcome-section {
    text-align: center;
    margin-bottom: 30px;
}

.welcome-section h1 {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.welcome-section .subtitle {
    font-size: 18px;
    color: #666;
    margin: 0;
}

/* Tab System Styles */
.login-tabs {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
    width: 100%;
    max-width: 400px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: #667eea;
    font-weight: 600;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #667eea;
}

.tab-btn:hover {
    color: #667eea;
}

.tab-content {
    display: none;
    width: 100%;
    max-width: 400px;
}

.tab-content.active {
    display: block;
}

/* Tab form specific styles */
.tab-content .input-group {
    margin-bottom: 20px;
}

.tab-content select {
    flex: 1;
    margin-left: 15px;
    border: none;
    background: transparent;
    outline: none;
    font-size: 16px;
    color: #333;
}

.tab-content textarea {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 16px;
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
    color: #333;
}

.tab-content input::placeholder,
.tab-content textarea::placeholder,
.tab-content select option {
    color: #8a94a5;
}