/* Grundlegende Reset fÃ¼r die Login-Seite */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
	user-select:none;
	cursor: url('/ui/norm.cur'), auto;
}

/* ======================================================
   LOGIN PAGE – DESKTOP DEFAULT
====================================================== */
body.login-page {

    background-image: url('/ui/bg/login.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    font-family: 'Fredoka', Arial, sans-serif;
    font-size: 14px;

    position: relative;
    z-index: 0;
    overflow: hidden;
}


body.login-page.loaded-bg {
    opacity: 1;
    filter: brightness(100%) blur(0px);
}


/* Container fÃ¼r das Login-Formular */
.login-container {
    background-color: rgba(0, 0, 0, 0.7); /* Dunklerer Hintergrund fÃ¼r mehr Kontrast */
    padding: 20px; /* Innenabstand */
    border-radius: 10px; /* Abgerundete Ecken */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5); /* Deutlicherer Schatten */
    max-width: 250px; /* Maximale Breite fÃ¼r den Container */
    width: 100%; /* Volle Breite */
    text-align: center; /* Zentrierter Text */
	z-index: 555;
}

/* Ãœberschrift des Login-Formulars */
h2 {
    color: #F0D9A2; /* Helle Farbe fÃ¼r die Ãœberschrift */
    margin-bottom: 15px; /* Abstand nach unten */
    font-size: 22px; /* GrÃ¶ÃŸere SchriftgrÃ¶ÃŸe */
}

/* Eingabefelder */
.input-box {
    margin-bottom: 15px; /* Abstand zwischen den Feldern */
}

.input-box label {
    display: block; /* Label als Block-Element */
    color: #F0D9A2; /* Helle Farbe fÃ¼r die Labels */
    margin-bottom: 5px; /* Abstand nach unten */
}

/* Container fÃ¼r Eingabefelder mit Icons */
.input-with-icon {
    position: relative; /* FÃ¼r Positionierung des Icons */
}

/* Eingabefelder */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="url"] {
    width: 100%;
    padding: 10px 10px 10px 40px;
    border: 0.1px solid tan;
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #F0D9A2;
    font-size: 12px;
    transition: background-color 0.3s;

    /* Cursor erzwingen */
    cursor: url('/ui/text.cur'), auto !important;
}

/* Cursor auch im Fokus erzwingen */
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="url"]:focus {
    cursor: url('/ui/text.cur'), auto !important;
}

/* Icon-Stil */
.input-with-icon i {
    position: absolute; /* Absolute Positionierung */
    left: 10px; /* AbstÃ¤nde vom linken Rand */
    top: 50%; /* Vertikale Zentrierung */
    transform: translateY(-50%); /* Zentrieren des Icons */
    color: #F0D9A2; /* Farbe des Icons */
}

/* Fokussieren der Eingabefelder ohne blauen Rand */
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="url"]:focus {
    outline: none; /* Kein blauer Rand */
}

/* Fehlerzustand fÃ¼r Eingabefelder */
input.error {
    border-color: red; /* Roter Rand fÃ¼r Fehler */
}

/* Stil fÃ¼r die Fehlerbox */
.error-message {
    color: red; /* Schriftfarbe */
    background-color: rgba(0, 0, 0, 0.8); /* Helles Rot mit Transparenz */
    padding: 15px; /* Innenabstand */
    border-radius: 8px; /* Abgerundete Ecken */
    margin-top: 25px; /* Abstand zur Login-Box */
    display: none; /* StandardmÃ¤ÃŸig verstecken */
    position: absolute; /* Absolute Positionierung fÃ¼r zentrierte Platzierung */
    left: 50%; /* Links 50% vom Container */
    transform: translateX(-50%); /* Horizontale Zentrierung */
    opacity: 0; /* Start mit Transparenz */
    transition: opacity 0.5s ease-in-out; /* Sanfter Ãœbergang fÃ¼r die Sichtbarkeit */
    z-index: 100; /* Ãœber anderen Elementen anzeigen */
}

/* Sichtbare Zustand der Fehlerbox */
.error-message.show {
    display: block; /* Sichtbar */
    opacity: 1; /* Voll sichtbar */
}

/* Shake Animation */
@keyframes shake {
    0% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
    100% { transform: translateX(0); }
}

/* Fehlerzustand */
.input-error {
    border: 1px solid #ff3b3b !important;
    animation: shake 0.35s ease;
}

@keyframes loaderAnim {
	0% { width:0%; }
	50% { width:100%; }
	100% { width:0%; }
}

#cooldown-hud{
	display:none;
	position:fixed;
	top:12px;
	right:12px;
	padding:6px 12px;
	background:rgba(0,0,0,0.55);
	border:1px solid #d7a84c;
	color:#F0D9A2;
	border-radius:8px;
	font-size:12px;
	z-index:100000;
}

/* Erfolgsbox â€“ professionell, sauber, Metin2-Style */
.success-box {
	background: rgba(0, 0, 0, 0.65);
    
    padding: 16px 14px;
    border-radius: 10px;
    width: 500px; /* fixe Breite, sieht schÃ¶ner aus */
    display: flex;
    gap: 12px;
    align-items: center;
	text-align:center;
    color: #F0D9A2;
    font-size: 15px;
    text-shadow: 0 0 6px black;
    box-shadow: 0 0 10px rgba(0,0,0,0.45);

    position: fixed; /* â† WICHTIG! */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    display: none;
    z-index: 9999;
}


/* Icon links */
.success-icon {
    font-size: 22px;
    color: #7CFC00; /* grÃ¼n */
    filter: drop-shadow(0 0 5px #2aff2a);
}

/* Text */
.success-text {
    line-height: 1.35em;
}


.hide {
    display: none !important;
}

.fade-out {
    opacity: 0;
    transition: opacity 0.8s ease-out;
}

.fade-in {
    opacity: 1;
    transition: opacity 0.8s ease-in;
}

#success-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(3px);
    z-index: 9000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease-in;
}

.timer-circle {
    margin-left: auto;
}

.timer-circle svg {
    transform: rotate(-90deg);
}

.timer-circle circle {
    fill: none;
    stroke: #d7a84c;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 125;   /* Kreisumfang */
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s linear;
    filter: drop-shadow(0 0 6px #d7a84c);
}

#login-loading {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(4px);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: #F0D9A2;
    font-family: Arial, sans-serif;
    text-shadow: 0 0 10px black;
}

.loader-bar {
    width: 200px;
    height: 8px;
    border-radius: 4px;
    background: #3a2b17;
    overflow: hidden;
    border: 1px solid #FECE58;
}

.loader-bar .fill {
    width: 0%;
    height: 100%;
    background: #FECE58;
    animation: loaderAnim 0.5s infinite;
}

.login-message {
    margin-top: 15px;
    font-size: 1.1em;
}

.show-flex   { display: flex !important; }
.show-block  { display: block !important; }
.hide        { display: none !important; }

.border-green { border-color: #4caf50 !important; }
.border-red   { border-color: red !important; }

/* ======================================================
   LOGO INFO MODAL
====================================================== */
.logo-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.65);
	backdrop-filter: blur(4px);
	z-index: 9000;

	display: flex;
	align-items: center;
	justify-content: center;

	opacity: 0;
	visibility: hidden;
	transition: opacity .25s ease;
}


.logo-modal-overlay.active {
	opacity: 1;
	visibility: visible;
}

.logo-modal {
	width: 420px;
	max-width: calc(100% - 40px);
	max-height: calc(100vh - 120px);

	background: rgba(20,8,2,.96);
	border: 1px solid rgba(240,217,162,.45);
	box-shadow: 0 0 45px rgba(0,0,0,.8);

	padding: 26px;
	text-align: center;

	overflow-y: auto;

	transform: scale(.92);
	transition: transform .25s ease;
}

.logo-modal {
	scrollbar-width: none;          /* Firefox */
	-ms-overflow-style: none;       /* IE / Edge */
}

.logo-modal::-webkit-scrollbar {
	width: 0;
	height: 0;
}

.logo-modal-overlay.active .logo-modal {
	transform: scale(1);
}

.logo-modal p {
	font-size: 14px;
	line-height: 1.5;
	color: #e6d6a8;
}

.logo-modal-close {
	margin-top: 18px;
	display: inline-block;
	font-size: 13px;
	color: #FECE58;
	opacity: .75;
}

.logo-modal-close:hover {
	opacity: 1;
}
.fm-legal-container {
    max-width: 1000px;
    margin: 10px auto;
    padding: 25px;
    background: rgba(15, 8, 5, 0.85);
    border: 1px solid rgba(255, 200, 120, 0.35);
    box-shadow: 0 0 25px rgba(255, 120, 40, 0.15);
}

.fm-legal-title {
    font-family: 'Metin2Font', 'Fredoka', serif;
    color: #f0d9a2;
    text-shadow: 0 0 12px rgba(255, 190, 90, 0.4);
    margin-bottom: 25px;
}

.fm-legal-box {
    margin-bottom: 22px;
    padding: 18px;
    background: rgba(25, 12, 6, 0.75);
    border-left: 3px solid rgba(255, 140, 60, 0.8);
}

.fm-legal-subtitle {
    color: #ffb36a;
    margin-bottom: 10px;
    font-weight: 600;
}

.fm-legal-box p {
    color: #e8dcc4;
    line-height: 1.6;
    margin-bottom: 10px;
}

.fm-legal-note {
    font-size: 0.9em;
    opacity: 0.85;
}

.fm-legal-note a {
    color: #ffcc88;
    text-decoration: none;
}

.fm-legal-note a:hover {
    text-decoration: underline;
}
/* ======================================================
   MODAL SCROLLBAR â€” SUBTLE GOLD
====================================================== */
.logo-modal::-webkit-scrollbar {
	width: 6px;
}

.logo-modal::-webkit-scrollbar-track {
	background: transparent;
}

.logo-modal::-webkit-scrollbar-thumb {
	background: linear-gradient(#FECE58, #5D0505);
	border-radius: 6px;
	opacity: .35;
}

.logo-modal {
	scrollbar-width: thin;
	scrollbar-color: #FECE58 transparent;
}

/* ======================================================
   LOGIN â€“ ACCOUNT STATS BOX
====================================================== */

.login-stats {
    margin-bottom: 18px;
    padding: 14px 16px;

    background: linear-gradient(
        180deg,
        rgba(20, 10, 5, 0.85),
        rgba(10, 5, 3, 0.92)
    );

    border: 1px solid rgba(255, 210, 140, 0.35);
    box-shadow:
        inset 0 0 12px rgba(255, 200, 120, 0.08),
        0 0 18px rgba(0, 0, 0, 0.6);

    text-align: center;
    user-select: none;
}

.login-stats-title {
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 215, 160, 0.85);

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    margin-bottom: 6px;
}

.login-stats-title i {
    color: #f0d9a2;
    text-shadow: 0 0 6px rgba(255, 215, 160, 0.6);
}

.login-stats-value {
    font-size: 26px;
    font-weight: 600;
    color: #f0d9a2;

    text-shadow:
        0 0 12px rgba(255, 215, 160, 0.6),
        0 0 2px rgba(0, 0, 0, 0.8);
}

.login-stats-value.animating {
    text-shadow:
        0 0 18px rgba(255, 220, 160, 0.85),
        0 0 4px rgba(0, 0, 0, 0.9);
}
