/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Warning Banner */
.warning-banner {
    position: absolute;
    top: -200px;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #ff6600 0%, #ff8800 100%);
    color: white;
    padding: 12px 20px;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    z-index: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    border-bottom: 3px solid #d45500;
}

/* Login Error Banner */
.login-error-banner {
    background-color: #3d0a0a;
    border: 1px solid #8b2020;
    border-radius: 8px;
    padding: 14px 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
    animation: fadeIn 0.3s ease-out;
}

.login-error-icon {
    flex-shrink: 0;
    margin-top: 1px;
}

.login-error-icon svg {
    display: block;
}

.login-error-text {
    font-size: 15px;
    line-height: 1.5;
    color: #e8a0a0;
    font-weight: 400;
    margin: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    --tw-bg-opacity: 1;
    background-color: rgb(243 249 254 / var(--tw-bg-opacity, 1));
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: #333;
    line-height: 1.6;
}

/* Header with Logo */
.page-header {
    padding: 20px 32px;
    background: transparent;
}

.logo-container {
    max-width: 100%;
}

.logo {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    opacity: 0.7;
    letter-spacing: 1px;
}

.demo-logo {
    font-size: 24px;
    font-weight: 700;
    color: #148dea;
    opacity: 1;
    letter-spacing: 2px;
}

/* Main Login Wrapper */
.login-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.login-container {
    background: white;
    border-radius: 12px;
    padding: 50px 30px;
    width: 100%;
    max-width: 520px;
    min-height: 330px;
}

/* Login Title */
.login-title {
    font-size: 34px;
    font-weight: 700;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: -0.5px;
}

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

.form-group {
    position: relative;
    margin-bottom: 22px;
}

.form-input {
    width: 100%;
    padding: 22px 16px 10px;
    font-size: 16px;
    color: #495057;
    background-color: rgba(0, 144, 255, .05);
    border: 1px solid #e1e4e8;
    border-bottom: 2px solid rgba(15, 47, 71, .66);
    border-radius: 6px;
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-input::placeholder {
    color: transparent;
}

.form-input:focus {
    background-color: #fff;
    border-color: #0066cc;
    border-bottom-color: rgba(15, 47, 71, .66);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

/* Disable browser autofill styling */
.form-input:-webkit-autofill,
.form-input:-webkit-autofill:hover,
.form-input:-webkit-autofill:focus,
.form-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px rgba(0, 144, 255, .05) inset !important;
    -webkit-text-fill-color: #495057 !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Floating Label */
.floating-label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #6c757d;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: transparent;
    padding: 0 4px;
}

.form-input:focus + .floating-label,
.form-input:not(:placeholder-shown) + .floating-label {
    top: 8px;
    font-size: 12px;
    color: #495057;
    transform: translateY(0);
}

/* Password Field with Toggle */
.password-wrapper {
    position: relative;
}

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

.password-wrapper .floating-label {
    left: 16px;
}

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

.toggle-password:hover {
    color: #495057;
}

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

.toggle-password svg {
    width: 20px;
    height: 20px;
}

/* Login Button */
.login-button {
    width: 100%;
    padding: 15px;
    margin-top: 28px;
    font-size: 16px;
    font-weight: 500;
    color: white;
    background: linear-gradient(135deg, #0066cc 0%, #005bb5 100%);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.3);
    font-family: inherit;
}

.login-button:hover {
    background: linear-gradient(135deg, #0052a3 0%, #004a99 100%);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.4);
    transform: translateY(-1px);
}

.login-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 102, 204, 0.3);
}

/* Forgot Links */
.forgot-links {
    text-align: center;
    margin-top: 24px;
    font-size: 1rem;
    color: #6c757d;
}

.forgot-links .link {
    color: #0066cc;
    text-decoration: underline;
    transition: color 0.2s ease;
    font-weight: 500;
}

.forgot-links .link:hover {
    color: #004a99;
    text-decoration: underline;
}

/* Footer Navigation */
.page-footer {
    background-color: rgb(19, 45, 64);
    color: white;
    height: 40px;
    padding: 0 20px;
    margin-top: auto;
    display: flex;
    align-items: center;
}

.footer-content {
    max-width: 100%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-left {
    margin-right: auto;
}

.footer-right {
    margin-left: auto;
}

.footer-left a,
.footer-right a {
    color: white;
    text-decoration: underline;
    font-size: .8125rem;
    font-weight: 500;
    letter-spacing: 0rem;
    line-height: 1.125rem;
    scroll-behavior: smooth;
    transition: opacity 0.2s ease;
    margin: 0 12px;
}

.footer-left a:first-child {
    margin-left: 0;
}

.footer-right a:last-child {
    margin-right: 0;
}

.footer-left a:hover,
.footer-right a:hover {
    opacity: 0.8;
}

/* Loader Overlay - Exact design from screenshot */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Spinner Animation */
.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top: 3px solid #0066cc;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.loader-text-main {
    font-size: 15px;
    color: white;
    font-weight: 400;
    max-width: 450px;
    line-height: 1.6;
    margin: 0;
}

.loader-text-sub {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    margin: 0;
}

/* Verification Page Subtitle */
.verify-subtitle {
    text-align: center;
    font-size: 15px;
    color: #6c757d;
    margin-top: -30px;
    margin-bottom: 30px;
    font-weight: 400;
}

/* PhotoTAN Instructions */
.phototan-instructions {
    background-color: #f0f8ff;
    border-left: 4px solid #0066cc;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 4px;
}

.phototan-instructions p {
    margin: 0;
    padding: 8px 0;
    font-size: 14px;
    color: #2c3e50;
    line-height: 1.6;
}

/* Date Input Styling */
.date-input {
    color: #495057;
}

.date-input::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.date-input::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* Date input floating label adjustment */
.form-input.date-input:not(:placeholder-shown) + .floating-label,
.form-input.date-input:focus + .floating-label,
.form-input.date-input:valid + .floating-label {
    top: 8px;
    font-size: 12px;
    color: #495057;
    transform: translateY(0);
}

/* Fade animations */
.fade-out {
    animation: fadeOut 0.5s ease-out forwards;
}

.fade-in {
    animation: fadeIn 0.5s ease-in forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

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

/* Confirmation Page Styles */
.confirmation-full-container {
    width: 100%;
    max-width: 950px;
    padding: 0 20px;
}

.confirmation-page-title {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 30px;
    letter-spacing: -0.5px;
}

.confirmation-box {
    background-color: #e8ebed;
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
}

.confirmation-main {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 30px;
    padding: 30px;
    background-color: #e8ebed;
}

.phone-icon-section {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    flex-shrink: 0;
    padding: 0 20px;
}

.phone-icon {
    width: 100px;
    height: 140px;
    filter: drop-shadow(0 2px 4px rgba(0, 102, 204, 0.1));
}

.phone-icon-rays {
    position: absolute;
    width: 160px;
    height: 140px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.ray {
    display: block;
    width: 3px;
    height: 35px;
    background: #0066cc;
    border-radius: 2px;
    opacity: 0.5;
    animation: rayPulse 1.5s ease-in-out infinite;
}

.ray-left {
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%) rotate(-15deg);
    animation-delay: 0s;
}

.ray-right {
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%) rotate(15deg);
    animation-delay: 0.75s;
}

@keyframes rayPulse {
    0%, 100% {
        opacity: 0.2;
        height: 30px;
    }
    50% {
        opacity: 0.6;
        height: 40px;
    }
}

.confirmation-text-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.confirmation-message {
    font-size: 16px;
    color: #2c3e50;
    line-height: 1.6;
    margin: 0;
}

.confirmation-message strong {
    font-weight: 600;
    color: #000;
}

.device-info {
    border-top: 1px solid #c5c9cd;
    padding-top: 15px;
    margin: 0;
}

.device-label {
    font-size: 15px;
    color: #2c3e50;
    font-weight: 400;
    margin: 0;
}

.device-name {
    font-weight: 600;
    color: #2c3e50;
}

.confirmation-hint-section {
    background-color: #fff;
    padding: 20px 30px;
    border-top: 1px solid #d1d5db;
}

.hint-title {
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 8px 0;
}

.hint-text {
    font-size: 14px;
    color: #495057;
    line-height: 1.5;
    margin: 0;
}

.hint-link {
    color: #0066cc;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: color 0.2s ease;
    margin-left: 3px;
}

.hint-link:hover {
    color: #004a99;
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-container {
        padding: 40px 30px;
    }

    .login-title {
        font-size: 28px;
    }

    .page-header,
    .page-footer {
        padding: 15px 20px;
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .footer-left,
    .footer-right {
        width: 100%;
    }

    .footer-right a {
        display: inline-block;
        margin: 5px 8px;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 30px 25px;
    }

    .login-title {
        font-size: 26px;
        margin-bottom: 30px;
    }

    .form-input {
        padding: 13px 14px;
        font-size: 15px;
    }

    .login-button {
        padding: 13px;
        font-size: 15px;
    }
}

svg {
    width: 85px;
    height: 48px;
}

/* NEW FEATURES - Success, Blocked, Info, SMS Cards */

/* Success Card */
.success-container {
    text-align: center;
    padding: 60px 40px;
    max-width: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.success-icon {
    margin: 0 auto 30px;
    animation: successPop 0.6s ease-out;
}

@keyframes successPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-title {
    font-size: 28px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}

.success-message {
    font-size: 16px;
    color: #666;
}

/* Blocked Screen */
.blocked-container {
    width: 100%;
    height: 100vh;
    background: transparent;
}

/* Info Card - New DKB-style Design */
.info-card-container {
    background: white;
    border-radius: 0;
    padding: 60px 80px;
    width: 100%;
    max-width: 900px;
    box-shadow: none;
}

.info-card-title {
    font-size: 36px;
    font-weight: 700;
    color: #0066cc;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.info-card-subtitle {
    font-size: 16px;
    color: #2c3e50;
    line-height: 1.6;
    margin-bottom: 35px;
    font-weight: 400;
}

.info-card-form {
    width: 100%;
}

/* Radio Buttons */
.info-radio-group {
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
    justify-content: center;
}

.info-radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    color: #2c3e50;
    cursor: pointer;
}

.info-radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #0066cc;
}

/* Form Rows */
.info-form-row {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
    gap: 20px;
}

.info-field-label {
    flex: 0 0 200px;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    text-align: left;
}

.info-field-inputs {
    flex: 1;
}

.info-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    color: #2c3e50;
    background-color: #f5f7f9;
    border: 1px solid #e1e4e8;
    border-radius: 4px;
    outline: none;
    transition: all 0.2s ease;
}

.info-input:focus {
    background-color: #fff;
    border-color: #0066cc;
    box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.1);
}

/* Datenschutz Section */
.info-datenschutz {
    margin-top: 40px;
    margin-bottom: 30px;
}

.info-datenschutz-title {
    font-size: 22px;
    font-weight: 700;
    color: #0066cc;
    margin-bottom: 15px;
}

.info-datenschutz-text {
    font-size: 14px;
    color: #2c3e50;
    line-height: 1.6;
    margin: 0;
}

.info-link {
    color: #0066cc;
    text-decoration: underline;
    font-weight: 600;
}

.info-link:hover {
    color: #004a99;
}

/* Pflichtfelder */
.info-pflichtfelder {
    font-size: 13px;
    color: #666;
    margin: 20px 0;
}

/* Submit Button */
.info-button-container {
    display: flex;
    justify-content: flex-end;
    margin: 30px 0 20px;
}

.info-submit-button {
    padding: 14px 60px;
    font-size: 16px;
    font-weight: 700;
    color: white;
    background: #0066cc;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.5px;
}

.info-submit-button:hover {
    background: #0052a3;
}

/* Security Text */
.info-security-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
    margin-top: 15px;
}

.info-security-text svg {
    width: 16px;
    height: 16px;
    color: #0066cc;
}

/* Responsive */
@media (max-width: 768px) {
    .info-card-container {
        padding: 40px 30px;
    }

    .info-form-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .info-field-label {
        flex: none;
        margin-bottom: 8px;
    }

    .info-radio-group {
        flex-direction: column;
        gap: 15px;
    }
}

/* SMS Card - New DKB-style Design */
.sms-card-container {
    background: transparent;
    border-radius: 12px;
    padding: 50px 40px;
    width: 100%;
    max-width: 500px;
    text-align: center;
}

.sms-card-title {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.sms-card-subtitle {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 35px;
}

.sms-card-form {
    width: 100%;
}

/* SMS Input with Lock Icon */
.sms-input-wrapper {
    position: relative;
    margin-bottom: 25px;
}

.sms-lock-icon {
    position: absolute;
    left: 0px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    z-index: 1;
    opacity: 0.6;
}

.sms-code-input {
    width: 100%;
    padding: 14px 16px 14px 38px;
    font-size: 16px;
    color: #2c3e50;
    background-color: white;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    outline: none;
    transition: all 0.2s ease;
    letter-spacing: 1px;
}

.sms-code-input::placeholder {
    letter-spacing: normal;
    color: #999;
}

.sms-code-input:focus {
    background-color: #fff;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

/* SMS Submit Button */
.sms-submit-button {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #0066cc 0%, #005bb5 100%);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.sms-submit-button:hover {
    background: linear-gradient(135deg, #0052a3 0%, #004a99 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.4);
}

.sms-submit-button svg {
    width: 16px;
    height: 16px;
}

/* Resend Link */
.sms-resend-text {
    font-size: 14px;
    color: #666;
    margin: 20px 0 30px;
}

.sms-resend-link {
    color: #0066cc;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.sms-resend-link:hover {
    color: #004a99;
    text-decoration: underline;
}

/* Divider */
.sms-divider {
    display: flex;
    align-items: center;
    margin: 30px 0;
    color: #999;
    font-size: 14px;
    font-weight: 600;
}

.sms-divider::before,
.sms-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e1e4e8;
}

.sms-divider span {
    padding: 0 15px;
}

/* Cancel Button */
.sms-cancel-button {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #0066cc 0%, #005bb5 100%);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.sms-cancel-button:hover {
    background: linear-gradient(135deg, #0052a3 0%, #004a99 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.4);
}

.sms-cancel-button svg {
    width: 16px;
    height: 16px;
}

/* App Card Modal - Light Blue Design */
.app-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(232, 238, 243, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    overflow: hidden;
}

.app-modal-card {
    position: relative;
    background: #f4f9ff;
    border-radius: 12px;
    padding: 50px 45px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

.app-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    cursor: pointer;
    color: #aaa;
    padding: 5px;
    transition: color 0.2s;
}

.app-modal-close:hover {
    color: #333;
}

.app-modal-illustration {
    margin: 0 auto 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-icon-image {
    max-width: 180px;
    height: auto;
}

.app-modal-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.app-modal-subtitle {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Responsive for App Modal */
@media (max-width: 768px) {
    .app-modal-card {
        padding: 50px 40px;
    }

    .app-icon-image {
        max-width: 140px;
    }

    .app-modal-title {
        font-size: 24px;
    }

    .app-modal-subtitle {
        font-size: 15px;
    }
}

/* Responsive adjustments for new cards */
@media (max-width: 480px) {
    .success-container {
        padding: 40px 30px;
    }

    .success-title {
        font-size: 24px;
    }

    .sms-digit {
        width: 42px;
        height: 52px;
        font-size: 20px;
    }

    .sms-input-container {
        gap: 8px;
    }
}

/* Verify Subtitle */
.verify-subtitle {
    text-align: center;
    font-size: 15px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
}