/* Swisscom Login Page Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'thesans', 'TheSans', sans-serif, Arial, Helvetica;
}

@font-face {
    font-family: 'TheSans';
    src: local('TheSans'), local('TheSans-Regular');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'thesans', 'TheSans', sans-serif, Arial, Helvetica;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


/* Cookie Warning */
.cookie-warning {
    background-color: #ff6b6b;
    color: white;
    padding: 12px 20px;
    text-align: center;
    font-size: 14px;
    display: none;
}

/* Container */
.swisscom-login-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
}

/* Header */
.swisscom-header {
    background-color: #ffffff;
    padding: 20px 40px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid #e0e0e0;
}

/* Main Content */
.swisscom-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background-color: #f5f5f5;
}

.login-wrapper {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 386px;
    min-height: 453px;
    border: 1px solid #e0e0e0;
    box-sizing: border-box;
}

/* Logo in Form */
.logo-in-form {
    text-align: left;
    margin-bottom: 25px;
}

.logo-in-form .swisscom-logo {
    width: 36px;
    height: 48px;
    display: block;
}

.swisscom-logo {
    height: auto;
    width: auto;
    max-width: 200px;
}

.login-title {
    font-size: 32px;
    font-weight: 600;
    color: #001155;
    margin-bottom: 8px;
    text-align: left;
}

.login-subtitle {
    font-size: 20px;
    font-weight: 400;
    color: #001155;
    margin-bottom: 20px;
    text-align: left;
}

.login-description {
    font-size: 18px;
    color: #333333;
    margin-bottom: 30px;
    text-align: left;
    line-height: 1.5;
    font-family: 'TheSans', 'TheSans Sans', Arial, sans-serif;
}

/* Form Styles */
.login-form {
    width: 100%;
}

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

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

/* Password Input Wrapper */
.password-input-wrapper {
    position: relative;
    width: 100%;
}

.password-input-wrapper .password-input {
    padding-right: 45px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #666;
    transition: color 0.3s ease;
    z-index: 10;
    outline: none;
}

.password-toggle:hover {
    color: #0066cc;
}

.password-toggle:focus {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
    border-radius: 3px;
}

.toggle-icon {
    display: inline-block;
    font-size: 18px;
    line-height: 1;
}

.form-input:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-input::placeholder {
    color: #999;
}

/* Form Links */
.form-links {
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.link-forgot,
.link-create {
    font-size: 13px;
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.link-forgot:hover,
.link-create:hover {
    color: #0052a3;
    text-decoration: underline;
}

/* Login Button */
.btn-login {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background-color: #0066cc;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-login:hover {
    background-color: #0052a3;
}

.btn-login:active {
    transform: translateY(1px);
}

.btn-login:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.3);
}

/* Password Step Styles */
.form-step {
    width: 100%;
}

.password-message {
    font-size: 16px;
    color: #333333;
    margin-bottom: 20px;
    padding: 12px;
    background-color: #f0f0f0;
    border-radius: 4px;
    text-align: left;
    font-weight: 500;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.btn-back {
    flex: 1;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    background-color: #f5f5f5;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-back:hover {
    background-color: #e0e0e0;
}

.btn-back:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.form-actions .btn-login {
    flex: 1;
}

/* Footer */
.swisscom-footer {
    background-color: #ffffff;
    padding: 20px 40px;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.05);
}

.footer-links {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-link {
    font-size: 13px;
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #0066cc;
    text-decoration: underline;
}

.language-selector {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.lang-link {
    font-size: 13px;
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.lang-link:hover {
    color: #0066cc;
}

.lang-link.active {
    color: #0066cc;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .swisscom-header {
        padding: 15px 20px;
    }

    .swisscom-main {
        padding: 20px 15px;
    }

    .login-wrapper {
        padding: 30px 20px;
        width: 100%;
        max-width: 386px;
        min-height: auto;
    }

    .logo-in-form {
        margin-bottom: 20px;
        text-align: left;
    }

    .logo-in-form .swisscom-logo {
        width: 32px;
        height: 42px;
    }

    .login-title {
        font-size: 28px;
        color: #001155;
        text-align: left;
    }

    .login-subtitle {
        font-size: 18px;
        color: #001155;
        text-align: left;
    }

    .login-description {
        text-align: left;
    }

    .swisscom-footer {
        padding: 15px 20px;
    }

    .footer-links {
        flex-direction: column;
        align-items: flex-start;
    }

    .language-selector {
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .login-wrapper {
        padding: 25px 15px;
        border-radius: 4px;
        width: 100%;
        max-width: 386px;
        min-height: auto;
    }

    .logo-in-form {
        margin-bottom: 15px;
        text-align: left;
    }

    .logo-in-form .swisscom-logo {
        width: 28px;
        height: 38px;
    }

    .login-title {
        font-size: 24px;
        color: #001155;
        text-align: left;
    }

    .login-subtitle {
        text-align: left;
    }

    .login-description {
        text-align: left;
    }

    .form-input {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .btn-login {
        padding: 12px 20px;
        font-size: 15px;
    }
}

