/* Login Page Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: rgb(154, 204, 228);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2c3e50;
    overflow: hidden;
}

.login-container {
    width: 100%;
    max-width: 450px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    min-height: 600px;
    overflow: hidden;
}

/* Header - Catalyst Logo */
.login-header {
    padding: 30px 24px;
    border-bottom: 1px solid #e9ecef;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10.8px;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
}

.logo-icon img {
    margin: auto;
    width: 90%;
}

.logo-text {
    color: #2c3e50;
    font-size: 30.24px;
    font-weight: 600;
    letter-spacing: 1.2825px;
    text-transform: uppercase;
    opacity: 0.85;
}

/* Login Content */
.login-content {
    flex: 1;
    padding: 40px 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-box {
    width: 100%;
}

.login-title {
    font-size: 28px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    text-align: center;
}

.login-subtitle {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 32px;
    text-align: center;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #495057;
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    color: #6c757d;
    font-size: 16px;
    z-index: 1;
    pointer-events: none;
}

.form-group input {
    width: 100%;
    padding: 12px 14px 12px 42px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    color: #2c3e50;
    background: #ffffff;
    transition: all 0.3s ease;
    font-family: 'Roboto', sans-serif;
}

.form-group input:focus {
    outline: none;
    border-color: #2196f3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.form-group input::placeholder {
    color: #adb5bd;
}

.password-toggle {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #2196f3;
}

.password-toggle:focus {
    outline: none;
}

.error-message {
    background: #fee;
    color: #c33;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 20px;
    border: 1px solid #fcc;
    text-align: center;
}

.login-button {
    width: 100%;
    padding: 14px;
    background: rgb(46, 182, 233);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Roboto', sans-serif;
}

.login-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 182, 233, 0.4);
}

.login-button:active:not(:disabled) {
    transform: translateY(0);
}

.login-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.button-loader {
    display: flex;
    align-items: center;
}

.button-loader i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Footer - H2O Innovation Logo */
.login-footer {
    padding: 24px;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #ffffff;
}

.company-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.company-logo img {
    margin: auto;
    max-width: 90%;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 480px) {
    .login-container {
        max-width: 100%;
        border-radius: 0;
        min-height: 100vh;
    }
    
    .login-header {
        padding: 24px 20px;
    }
    
    .login-content {
        padding: 32px 24px;
    }
    
    .login-title {
        font-size: 24px;
    }
}

/* Loading State */
.login-button.loading .button-text {
    display: none;
}

.login-button.loading .button-loader {
    display: flex;
}


