/* ============================================
   REGISTER PAGE — Fade system matched to LOGIN
   ============================================ */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
	user-select:none;
	cursor: url('/ui/norm.cur'), auto;
}

/* Background */
body.register-page {
    CONTAIN-INTRINSIC-WIDTH: AUTO 100PX;
    background-image: url('/ui/bg/register.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;
}

/* Fade-In identical to LOGIN (NOT body fade-in) */
.login-container {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

body.loaded .login-container {
    opacity: 1;
    transform: translateY(0);
}

/* Container identisch zu Login */
.login-container {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    max-width: 250px;
    width: 100%;
    text-align: center;
    position: relative;
}

/* Inputs */
.input-box { margin-bottom: 15px; }
.input-with-icon { position: relative; }

.input-with-icon i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #F0D9A2;
}

/* 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;
}

input:focus { outline: none; }

/* Error message */
.error-message {
    color: red;
    background-color: rgba(0,0,0,0.8);
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    position: absolute;
    left: 50%;
    bottom: -65px;
    transform: translateX(-50%);
    width: 100%;
    text-shadow: 0 0 6px black;
}

.error-message.show {
    display: block;
    opacity: 1;
}

/* Utilities */
.hide { display: none !important; }
.show-flex { display: flex !important; }
.border-red { border-color: red !important; }
.border-green { border-color: #4caf50 !important; }
