* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
body {
    background-color: #0c192c;
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Carousel Background */
.carousel-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}
.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.carousel-slide.active {
    opacity: 1;
}
.carousel-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(28,19,98,0.4) 0%, #0f2443 100%);
}

/* Carousel Indicators */
.carousel-indicators {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.carousel-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.3s;
}
.carousel-indicator.active {
    background: #13a2ba;
    width: 24px;
    border-radius: 4px;
}

/* Language Switch */
.header {
    position: fixed;
    top: 0;
    right: 0;
    padding: 15px;
    z-index: 100;
}
.lang-switch {
    background: rgba(19,162,186,0.2);
    border: 1px solid rgba(19,162,186,0.5);
    border-radius: 20px;
    padding: 5px 15px;
    color: #13a2ba;
    cursor: pointer;
    font-size: 13px;
    outline: none;
}

/* Login Container */
.login-page-container {
    box-sizing: content-box;
    margin: auto;
    padding: calc((100vh - 30px - 680px) / 2) 15px 0;
    max-width: 354px;
    /*min-height: 100vh;*/
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Logo */
.login-page-logo {
    margin: 0 auto 30px;
    width: 195px;
    height: 100px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url('../images/t2logo3.png');
}

/* Welcome Text */
.login-method-button-group .title {
    font-size: 16px;
    color: #ffff00;
    text-align: center;
    display: block;
    margin-bottom: 15px;
}

/* Login Method Buttons */
.button-group-container {
    margin: 11px 0 30px;
    display: flex;
    justify-content: space-between;
}
.button-group-container button {
    flex: 1;
    height: 36px;
    background: #132235;
    border: none;
    color: #13a2ba;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}
.button-group-container button:first-child {
    border-radius: 4px 0 0 4px;
}
.button-group-container button:last-child {
    border-radius: 0 4px 4px 0;
}
.button-group-container button.selected {
    background-image: linear-gradient(179deg, #13a2ba, #087c95);
    color: #ffff00;
}

/* Form Styles */
.login-form {
    margin-top: 20px;
}
.login-form__field {
    color: #ffff00;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.375;
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(151,151,151,.2);
    padding: 5px 0;
}
.login-form__field:not(:first-child) {
    margin-top: 15px;
}
.login-form__field__icon-prefix {
    flex: 0 0 auto;
    display: block;
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.login-form__field__icon-prefix--username {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23c0c0c0"><path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/></svg>');
}
.login-form__field__icon-prefix--password {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23c0c0c0"><path d="M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z"/></svg>');
}
.login-form__field__input {
    flex: 1 1 auto;
    margin: 0;
    padding: 8px 12px;
    min-width: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: 0;
    border: none;
    background: 0 0;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}
.login-form__field__input::placeholder {
    color: #ffff00;
    opacity: 0.7;
}

/* Submit Button */
.login-form__submit-btn {
    display: block;
    margin-top: 20px;
    padding: 12px;
    width: 100%;
    min-height: 54px;
    color: #ffff00;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    background-image: linear-gradient(179deg, #13a2ba, #087c95);
    cursor: pointer;
    transition: all 0.3s;
}
.login-form__submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Bottom Action Buttons */
.login-action-btn-group {
    margin-top: 15px;
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: center;
}
.login-action-btn-group a {
    flex: 0 1 auto;
    padding: 0;
    color: #ffff00;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    text-decoration: none;
}

/* Error Message */
.error-msg {
    background: rgba(231,76,60,0.2);
    border: 1px solid rgba(231,76,60,0.5);
    color: #e74c3c;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    display: none;
    text-align: center;
    font-size: 14px;
}

/* Version Info */
.login-page-version-info {
    margin-top: 15px;
    color: #ffff00;
    font-size: 12px;
    text-align: center;
    opacity: 0.6;
}

/* Responsive */
@media (max-height: 600px) {
    .login-page-container {
        padding-top: 80px;
        padding-bottom: 80px;
    }
}